Skip to content

Commit

Permalink
ESD-2.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Pattrick Leo committed Aug 8, 2024
1 parent 4596bdc commit 81e1ada
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG_de-DE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 2.0.4
* Problem behoben, dass das Flow-Ereignis beim Upgrade von Shopware 6.4 auf 6.5 nicht ausgelöst wird

# 2.0.3
* Wiederholung der Version 2.0.1 mit behobenem Fehler beim Kompilieren von SCSS im Storefront.

Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG_en-GB.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 2.0.4
* Fixed issue that the flow event is not triggered when upgrading from Shopware 6.4 to 6.5

# 2.0.3
* Re-release of version 2.0.1 with fixed error while compiling SCSS at Storefront.

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description":"ESD / Download plugin",
"type":"shopware-platform-plugin",
"keywords": ["esd", "download"],
"version":"2.0.3",
"version":"2.0.4",
"license":"proprietary",
"authors":[
{
Expand Down
2 changes: 1 addition & 1 deletion src/Checkout/Cart/Subscriber/OrderPlacedSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __invoke(CheckoutOrderPlacedEvent $event): void
{
$orderLineItems = $event->getOrder()->getLineItems();

if ($orderLineItems === null || $event->getOrder()->getAmountTotal() > 0.0) {
if ($orderLineItems === null) {
return;
}

Expand Down
1 change: 1 addition & 0 deletions src/Event/EsdDownloadPaymentStatusPaidDisabledZipEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ public function getValues(): array
{
return [
'esdData' => $this->templateData,
...$this->templateData,
];
}
}
1 change: 1 addition & 0 deletions src/Event/EsdDownloadPaymentStatusPaidEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ public function getValues(): array
{
return [
'esdData' => $this->templateData,
...$this->templateData,
];
}
}
1 change: 1 addition & 0 deletions src/Event/EsdSerialPaymentStatusPaidEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ public function getValues(): array
{
return [
'esdData' => $this->templateData,
...$this->templateData,
];
}
}
1 change: 0 additions & 1 deletion src/Subscriber/OrderStateChangedSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ public function orderStatePaid(OrderStateMachineStateChangeEvent $event): void

if ($this->esdOrderService->isEsdOrder($order)
&& !empty($order->getLineItems())
&& $order->getAmountTotal() > 0
) {
$orderLineItemIds = array_filter($order->getLineItems()->fmap(static function (OrderLineItemEntity $orderLineItem) {
return $orderLineItem->getId();
Expand Down

0 comments on commit 81e1ada

Please sign in to comment.