Closed arvislacis closed 3 years ago
Steps to reproduce:
Cause of this is that when clearing Order value in step 3 then in plugin.yaml file it's stored as order: '' which then throws exception because of https://github.com/wintercms/winter/blob/develop/modules/backend/classes/NavigationManager.php#L121 - because there is no type conversation to int value.
plugin.yaml
order: ''
Possible solutions:
return (int) $a->order - (int) $b->order;
Fixed by https://github.com/wintercms/winter/commit/763db7eb8097fbd2c8ca19cd92935fcd1f5abe5f
Steps to reproduce:
Cause of this is that when clearing Order value in step 3 then in
plugin.yaml
file it's stored asorder: ''
which then throws exception because of https://github.com/wintercms/winter/blob/develop/modules/backend/classes/NavigationManager.php#L121 - because there is no type conversation to int value.Possible solutions:
order: ''
back intoplugin.yaml
when parameter value is empty...return (int) $a->order - (int) $b->order;
.