Open jonasraoni opened 1 year ago
Describe the bug Old OMP installations may present the following error:
Warning: Undefined array key 1 in /var/www/html/classes/components/listPanels/CatalogListPanel.php on line 83
It happens because the category_settings probably didn't have the sortOption setting before, and the code is assuming that it has always existed.
category_settings
sortOption
Solution Provide a default value when null/non-existent, a deeper fix through a migration might be applied as well (if the field is required).
What application are you using? OMP 3.4.1
It's just a warning, the next line of code ensures a sensible fallback is used, and it's resolved by saving the catalog settings form, which will eventually happen naturally; I'm tempted to leave this a WONTFIX.
Describe the bug Old OMP installations may present the following error:
It happens because the
category_settings
probably didn't have thesortOption
setting before, and the code is assuming that it has always existed.Solution Provide a default value when null/non-existent, a deeper fix through a migration might be applied as well (if the field is required).
What application are you using? OMP 3.4.1