Skip to content

Commit

Permalink
Bugfix: Allow to select the correct status for payment link #825
Browse files Browse the repository at this point in the history
  • Loading branch information
michielgerritsen committed Nov 21, 2024
1 parent 96fdc1f commit a031131
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
17 changes: 17 additions & 0 deletions Model/Adminhtml/Source/PendingPaymentStatus.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php
/*
* Copyright Magmodules.eu. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Mollie\Payment\Model\Adminhtml\Source;

use Magento\Sales\Model\Config\Source\Order\Status;

class PendingPaymentStatus extends Status
{
/**
* @var string
*/
protected $_stateStatuses = \Magento\Sales\Model\Order::STATE_PENDING_PAYMENT;
}
4 changes: 2 additions & 2 deletions etc/adminhtml/methods/paymentlink.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
</depends>
</field>
<field id="order_status_new" translate="label comment" type="select" sortOrder="60" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Status New</label>
<source_model>Mollie\Payment\Model\Adminhtml\Source\NewStatus</source_model>
<label>Status After Creation</label>
<source_model>Mollie\Payment\Model\Adminhtml\Source\PendingPaymentStatus</source_model>
<config_path>payment/mollie_methods_paymentlink/order_status_new</config_path>
<depends>
<field id="active">1</field>
Expand Down

0 comments on commit a031131

Please sign in to comment.