Update actions_addupdatedelete.inc.php
This commit is contained in:
parent
b88a9fc94d
commit
0c3f8d2daa
@ -74,7 +74,7 @@ if ($action == 'add' && !empty($permissiontoadd))
|
||||
} elseif (preg_match('/^(integer|price|real|double)/', $object->fields[$key]['type'])) {
|
||||
$value = price2num(GETPOST($key, 'alphanohtml')); // To fix decimal separator according to lang setup
|
||||
} elseif ($object->fields[$key]['type'] == 'boolean') {
|
||||
$value = (GETPOST($key) == '1' ? 1 : 0);
|
||||
$value = ((GETPOST($key) == '1' || GETPOST($key) == 'on') ? 1 : 0);
|
||||
} elseif ($object->fields[$key]['type'] == 'reference') {
|
||||
$tmparraykey = array_keys($object->param_list);
|
||||
$value = $tmparraykey[GETPOST($key)].','.GETPOST($key.'2');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user