Skip to content

Commit 06425b6

Browse files
committed
MAGETWO-54693: Ability to return the product to the stock after Creditmemo API
1 parent 9a252e4 commit 06425b6

File tree

1 file changed

+3
-1
lines changed
  • app/code/Magento/Shipping/Controller/Adminhtml/Order/Shipment

1 file changed

+3
-1
lines changed

app/code/Magento/Shipping/Controller/Adminhtml/Order/Shipment/Save.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,9 @@ public function execute()
130130
$shipment->setCustomerNote($data['comment_text']);
131131
$shipment->setCustomerNoteNotify(isset($data['comment_customer_notify']));
132132
}
133-
$errorMessages = $this->getShipmentValidator()->validate($shipment, [QuantityValidator::class]);
133+
$errorMessages = $this->getShipmentValidator()
134+
->validate($shipment, [QuantityValidator::class])
135+
->getMessages();
134136
if (!empty($errorMessages)) {
135137
$this->messageManager->addError(
136138
__("Shipment Document Validation Error(s):\n" . implode("\n", $errorMessages))

0 commit comments

Comments
 (0)