Skip to content

Commit

Permalink
RATEPLUG-208: fix delete orders, which are not Ratepay orders
Browse files Browse the repository at this point in the history
  • Loading branch information
rommelfreddy committed Aug 30, 2021
1 parent 8828c41 commit 86cfa0d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions Subscriber/Backend/OrderOperationsSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ public function replaceDeleteOrder(Enlight_Hook_HookArgs $args)

if (PaymentMethods::exists($order->getPayment()) === false) {
//payment is not a ratepay order
$args->getSubject()->executeParent($args->getMethod(), $args->getArgs());
return;
}
$sql = 'SELECT COUNT(*) FROM `s_order_details` AS `detail` '
Expand Down
19 changes: 18 additions & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<label lang="de">Ratepay Payment Plugin für Shopware 5</label>
<label>Ratepay Payment Plugin for Shopware 5</label>

<version>6.1.2</version>
<version>6.1.3</version>
<copyright>Copyright (c), Ratepay GmbH</copyright>
<license>MIT</license>
<link>https://www.ratepay.com</link>
Expand All @@ -22,6 +22,23 @@
<description>Ratepay enables you to accept online payments without any risk of fraud and without the hassle of debtors management.</description>
<description lang="de">Ratepay stellt verschiedene Zahlungsarten für Ihren Onlineshop zur Verfügung, ohne dass Sie sich mit der Risikoprüfung oder dem Debitorenmanagement beschäftigen müssen.</description>

<changelog version="6.1.3">
<changes>
<![CDATA[
<ul>
<li>fixes delete orders, which are not Ratepay orders</li>
</ul>
]]>
</changes>
<changes lang="de">
<![CDATA[
<ul>
<li>Behebt einen Fehler, dass Bestellungen (welche nicht mit Ratepay verarbeitet worden sind) nicht gelöscht werden können.</li>
</ul>
]]>
</changes>
</changelog>

<changelog version="6.1.2">
<changes>
<![CDATA[
Expand Down

0 comments on commit 86cfa0d

Please sign in to comment.