Skip to content

Commit

Permalink
Release 1.0.36
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Schurter committed Dec 3, 2018
1 parent 2a96066 commit f91ade4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ This repository contains the Shopware plugin that enables to process payments wi

## Documentation

* [Documentation](https://plugin-documentation.postfinance-checkout.ch/pfpayments/shopware-composer/1.0.35/docs/en/documentation.html)
* [Documentation](https://plugin-documentation.postfinance-checkout.ch/pfpayments/shopware-composer/1.0.36/docs/en/documentation.html)

## License

Please see the [license file](https://github.com/pfpayments/shopware-composer/blob/1.0.35/LICENSE) for more information.
Please see the [license file](https://github.com/pfpayments/shopware-composer/blob/1.0.36/LICENSE) for more information.
6 changes: 2 additions & 4 deletions Subscriber/Webhook/AbstractOrderRelatedSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
use Shopware\Components\Model\ModelManager;
use Shopware\Models\Order\Order;
use PostFinanceCheckoutPayment\Models\OrderTransactionMapping;
use Doctrine\DBAL\LockMode;

abstract class AbstractOrderRelatedSubscriber extends AbstractSubscriber
{
Expand Down Expand Up @@ -56,10 +57,7 @@ public function process($entity)
if (! ($orderTransactionMapping instanceof OrderTransactionMapping) || $orderTransactionMapping->getTransactionId() != $this->getTransactionId($entity)) {
return;
}
$this->modelManager->getRepository(OrderTransactionMapping::class)->createNamedQuery('lock')->setParameter('orderId', $order->getId())->execute();

$order = $this->modelManager->getRepository(Order::class)->find($order->getId());

$order = $this->modelManager->getRepository(Order::class)->find($order->getId(), LockMode::PESSIMISTIC_WRITE);
$this->handleOrderRelatedInner($order, $entity);
}

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}
],
"type": "shopware-plugin",
"version" : "1.0.35",
"version" : "1.0.36",
"require": {
"postfinancecheckout/sdk": "1.1.12"
},
Expand Down
2 changes: 1 addition & 1 deletion docs/en/documentation.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h2>Documentation</h2> </div>
</a>
</li>
<li>
<a href="https://github.com/pfpayments/shopware-composer/releases/tag/1.0.35/">
<a href="https://github.com/pfpayments/shopware-composer/releases/tag/1.0.36/">
Source
</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<label lang="de">PostFinance Checkout Payment</label>
<label lang="en">PostFinance Checkout Payment</label>

<version>1.0.35</version>
<version>1.0.36</version>
<copyright>(c) by customweb ltd.</copyright>
<license>ASL 2.0</license>
<link>https://www.postfinance.ch</link>
Expand Down

0 comments on commit f91ade4

Please sign in to comment.