You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix undefined offset notice when no order states are set
When the DB has no order states (or just missing non-visible, or visible ones), M2 throws with `Notice: Undefined offset: 1 in /vagrant/vendor/magento/module-sales/Model/Order/Config.php on line 256`.
You can argue that M2 shouldn't take into consideration invalid DBs, and I would just slightly agree with you, but, for such a small fix, why bother arguing that in the first place, eh?
0 commit comments