FIX Option MAIN_DIRECT_STATUS_UPDATE broken. Ajax on/off not saving value in DB after updating to version >=12
This commit is contained in:
parent
efb9d184e4
commit
9d2fb782fa
@ -80,5 +80,9 @@ if (($action == 'set') && !empty($id)) {
|
|||||||
|
|
||||||
$format = 'int';
|
$format = 'int';
|
||||||
|
|
||||||
|
$object->table_element = $tablename;
|
||||||
|
$object->id = $id;
|
||||||
|
$object->fields[$field] = array('type' => $format, 'enabled' => 1);
|
||||||
|
|
||||||
$object->setValueFrom($field, $value, $tablename, $id, $format, '', $user, $triggerkey);
|
$object->setValueFrom($field, $value, $tablename, $id, $format, '', $user, $triggerkey);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user