1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-01-23 04:19:59 +01:00
This commit is contained in:
Thomas Zilio 2018-10-30 20:03:30 +01:00
parent 809eb95380
commit 249ed83f90

View File

@ -62,7 +62,7 @@ switch (filter('op')) {
$dbo->update('zz_views', $array, ['id' => $id]);
} elseif (!empty(post('query')[$c])) {
$array['#order'] = '(SELECT IFNULL(MAX(`order`) + 1, 0) FROM zz_views AS t WHERE id_module='.prepare($id_record).')';
$array['order'] = orderValue('zz_views', 'id_module', $id_record);
$dbo->insert('zz_views', $array);