diff --git a/src/Resources/views/storefront/page/account/downloads/index.html.twig b/src/Resources/views/storefront/page/account/downloads/index.html.twig
index 7a8b292..770be57 100644
--- a/src/Resources/views/storefront/page/account/downloads/index.html.twig
+++ b/src/Resources/views/storefront/page/account/downloads/index.html.twig
@@ -27,8 +27,7 @@
{% sw_include '@Storefront/storefront/page/account/downloads/table.html.twig' with {
esdOrders: esdOrders,
- downloadLimits: downloadLimits,
- isReloadData: isReloadData
+ downloadLimits: downloadLimits
} %}
diff --git a/src/Resources/views/storefront/page/account/downloads/table.html.twig b/src/Resources/views/storefront/page/account/downloads/table.html.twig
index 362410c..f7404f5 100644
--- a/src/Resources/views/storefront/page/account/downloads/table.html.twig
+++ b/src/Resources/views/storefront/page/account/downloads/table.html.twig
@@ -51,7 +51,7 @@
{% if esdOrder.esd.esdMedia|length %}
-
{{ "sasEsd.account.downloadTable.downloadButton"|trans|sw_sanitize }}
diff --git a/src/Storefront/Controller/DownloadsController.php b/src/Storefront/Controller/DownloadsController.php
index af1146a..69a6ca9 100644
--- a/src/Storefront/Controller/DownloadsController.php
+++ b/src/Storefront/Controller/DownloadsController.php
@@ -9,7 +9,6 @@
use Shopware\Core\Framework\DataAbstractionLayer\EntityRepositoryInterface;
use Shopware\Core\Framework\Routing\Annotation\RouteScope;
use Shopware\Core\Framework\Store\Services\StoreService;
-use Shopware\Core\Framework\Uuid\Uuid;
use Shopware\Core\PlatformRequest;
use Shopware\Core\System\SalesChannel\SalesChannelContext;
use Shopware\Storefront\Controller\StorefrontController;
@@ -37,21 +36,14 @@ class DownloadsController extends StorefrontController
*/
private $esdDownloadService;
- /**
- * @var StoreService
- */
- private $storeService;
-
public function __construct(
EntityRepositoryInterface $esdOrderRepository,
EsdService $esdService,
- EsdDownloadService $esdDownloadService,
- StoreService $storeService
+ EsdDownloadService $esdDownloadService
) {
$this->esdOrderRepository = $esdOrderRepository;
$this->esdService = $esdService;
$this->esdDownloadService = $esdDownloadService;
- $this->storeService = $storeService;
}
/**
@@ -66,18 +58,11 @@ public function getAccountDownloads(SalesChannelContext $context): Response
/** @var EsdOrderCollection $esdOrdersCollection */
$esdOrdersCollection = $esdOrders->getEntities();
- $isReloadData = true;
- $shopwareVersion = $this->storeService->getShopwareVersion();
- if ($shopwareVersion >= '6.3.2.0' && $shopwareVersion < '6.3.3.0') {
- $isReloadData = false;
- }
-
return $this->renderStorefront(
'storefront/page/account/downloads/index.html.twig',
[
'esdOrders' => $esdOrders,
'downloadLimits' => $this->esdDownloadService->getLimitDownloadNumberList($esdOrdersCollection),
- 'isReloadData' => $isReloadData
]
);
}
|