-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6
-- Error-message(debug-mod must be tuned on) -- : field "0" not secured
There is an error "field "0" not secured" when trying to save custom field with "Display limited to" set to custom field of type with multiple choices.
How to reproduce:
- Create product custom field with field type Checkbox or Multiple Dropdown
- Create second product custom field, save it and then set "Display limited to" to custom field from step 1, set at least 1 value and save it.
Problem is in the file administrator\components\com_hikashop\classes\field.php on line 1019.
For field types Checkbox and Multiple Dropdown $value is indexed array, therefore $id is 0 and call to
hikashop_secureField() with integer argument results in die().
Here is var_dump($fieldOptions) for field type dropdown
and var_dump($fieldOptions, $value) for field type Checkbox.