Skip to content

Commit 6176951

Browse files
committed
MAGETWO-54191: [GITHUB] Error saving new order status in backend #4146
1 parent e7d6678 commit 6176951

File tree

1 file changed

+5
-1
lines changed
  • app/code/Magento/Sales/Controller/Adminhtml/Order/Status

1 file changed

+5
-1
lines changed

app/code/Magento/Sales/Controller/Adminhtml/Order/Status/Save.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,12 @@ public function execute()
2727
$filterManager = $this->_objectManager->get('Magento\Framework\Filter\FilterManager');
2828
if ($isNew) {
2929
$statusCode = $data['status'] = $filterManager->stripTags($data['status']);
30+
}
31+
$data['label'] = $filterManager->stripTags($data['label']);
32+
if (!isset($data['store_labels'])) {
33+
$data['store_labels'] = [];
3034
}
31-
$data['label'] = $filterManager->stripTags($data['label']);
35+
3236
foreach ($data['store_labels'] as &$label) {
3337
$label = $filterManager->stripTags($label);
3438
}

0 commit comments

Comments
 (0)