-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't save order status label #7006
Comments
The problem is that in \Magento\Sales\Controller\Adminhtml\Order\Status\Save::execute after order status load the order status is missing the label data. \Magento\Framework\Model\ResourceModel\Db\AbstractDb::save checks if the data that was present on load is changed. It hasn't. But data is added. And that does not count in the isModified check there. So the order status is considered as not modified and the processNotModifiedSave is executed instead of updateObject |
@robmagento as a workaround you can edit the main label as well and save it with the store labels. Then edit it back once the labels are in place. This will work. |
I'll see if I can make a pull request so that this code will include the store values of the labels. \Magento\Sales\Controller\Adminhtml\Order\Status\Save::execute $status = $this->_objectManager->create('Magento\Sales\Model\Order\Status')->load($statusCode); |
Your workaround... works :). Thank you, I did not have the time to investigate this. |
There you go ;) |
@robmagento thank you for reporting. Internal issue is MAGETWO-59639 |
@ajpevers thanks for a workaround! |
@ajpevers same issue, and afther change code works like a charm. |
On 2.18 it the same until Magento\Sales\Model\ResourceModel\Order\Status will extend the \Magento\Framework\Model\ResourceModel\Db\AbstractDb |
the _afterSave doesnt executed when extention of resource model is from VersionControl |
This fix still helps |
B2B-1785: Cannot enable remote storage with install command when modules are not enabled
Preconditions
Steps to reproduce
Expected result
Actual result
The text was updated successfully, but these errors were encountered: