Skip to content

Commit 2298b76

Browse files
AC-10042:: /V1/transactions REST API returns error when parent_txn_id = txn_id
1 parent 7b42256 commit 2298b76

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/code/Magento/Sales/Model/ResourceModel/Order/Payment/Transaction.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ public function getOrderWebsiteId($orderId)
132132
* @param \Magento\Framework\Model\AbstractModel|\Magento\Sales\Model\Order\Payment\Transaction $transaction
133133
* @throws \Magento\Framework\Exception\LocalizedException
134134
* @return $this
135+
*
136+
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
135137
*/
136138
protected function _beforeSave(\Magento\Framework\Model\AbstractModel $transaction)
137139
{

0 commit comments

Comments
 (0)