I updated prestashop to version 1.7.8.7 in my local environment and found the error bellow when opening the module setting page:

This happens because the values array of switch input does not have the key id:
|
array( |
|
'type' => 'switch', |
|
'label' => $this->l('Store orders'), |
|
'name' => 'CODWFEEPLUS_KEEPTRANSACTIONS', |
|
'is_bool' => true, |
|
'values' => array( |
|
array( |
|
'value' => 1, |
|
), |
|
array( |
|
'value' => 0, |
|
), |
|
), |
It should be:
'values' => array(
array(
'id' => 'active_on',
'value' => 1,
),
array(
'id' => 'active_off',
'value' => 0,
),
All switch input in the form need to be fixed.
Thank you!
I updated prestashop to version 1.7.8.7 in my local environment and found the error bellow when opening the module setting page:
This happens because the
valuesarray of switch input does not have the keyid:codwfeeplus/codwfeeplus/controllers/admin/AdminCODwFeePlusController.php
Lines 1287 to 1299 in bf1b106
It should be:
All switch input in the form need to be fixed.
Thank you!