Merge pull request #16427 from dvdwalker/ajax-fix
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:
commit
67db1d4937
@ -92,5 +92,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