Skip to content

Commit 0b0c1b1

Browse files
author
Yuri Kovsher
committed
MAGETWO-38793: PR prep and processing: Stories
1 parent 6f21374 commit 0b0c1b1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,9 @@ public function place()
310310
$orderState = $order->getState() ? $order->getState() : $orderState;
311311
$orderStatus = $order->getStatus() ? $order->getStatus() : $orderStatus;
312312
}
313+
} else {
314+
$order->setState($orderState)
315+
->setStatus($orderStatus);
313316
}
314317

315318
$isCustomerNotified = $isCustomerNotified ?: $order->getCustomerNoteNotify();

0 commit comments

Comments
 (0)