mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-01-23 04:19:59 +01:00
Fix #341
This commit is contained in:
parent
809eb95380
commit
249ed83f90
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user