-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
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:
codwfeeplus/codwfeeplus/controllers/admin/AdminCODwFeePlusController.php
Lines 1287 to 1299 in bf1b106
| 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!
Luifer-dnk
Metadata
Metadata
Assignees
Labels
No labels
