mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
Retrofix per aggiornare l'ordine righe considerando l'ordine precedente
This commit is contained in:
@@ -116,7 +116,7 @@ function orderValue($table, $field, $id)
|
||||
*/
|
||||
function reorderRows($table, $field, $id)
|
||||
{
|
||||
$righe = database()->select($table, 'id', [$field => $id]);
|
||||
$righe = database()->select($table, 'id', [$field => $id], ['order' => 'ASC']);
|
||||
$i = 1;
|
||||
|
||||
foreach ($righe as $riga) {
|
||||
|
||||
Reference in New Issue
Block a user