lscache_prestashop icon indicating copy to clipboard operation
lscache_prestashop copied to clipboard

PrestaShop 9 compatibility: fix Customization “Undefined array key 'id'”, remove duplicate “View”, and hide non-functional category tree actions

Open DaveZ07 opened this issue 1 month ago • 0 comments

This PR completes full compatibility with PrestaShop 9 and addresses several admin UX and stability issues:

Customization: fix “Undefined array key 'id'” in HelperForm Ensure switch fields (e.g., disableESI) include explicit value IDs (e.g., disableESI_on/off). Add defensive guards so HelperForm always receives consistent current_values and options. Admin list UX: remove duplicate “View” action Keep a single primary “View” entry and drop the redundant one from the dropdown actions. Category tree: hide non-functional “Collapse all / Expand all” controls Since these controls don’t work with the category tree in this context, they’re hidden to avoid confusion. Hardening and fallbacks When configuration entries are missing, the controllers fall back gracefully (list view + safe defaults) instead of emitting warnings. Module options are always initialized with a valid non-empty set (fallback label if needed).

Why this matters:

Clean admin UX with no duplicate actions. No PHP warnings in Customization forms under PS 9. Predictable behavior when data/config is incomplete.

Compatibility Verified with PrestaShop 9; keeps backward-friendly behavior for older versions where applicable. No schema changes; no data migrations required.

DaveZ07 avatar Oct 28 '25 16:10 DaveZ07