mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-02 08:56:48 +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]);
|
$dbo->update('zz_views', $array, ['id' => $id]);
|
||||||
} elseif (!empty(post('query')[$c])) {
|
} 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);
|
$dbo->insert('zz_views', $array);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user