1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

Fix ordinamento voci di menù + modificate query per filtro widget in base al gruppo

This commit is contained in:
Luca
2018-02-16 11:56:08 +01:00
parent 57027a4113
commit 8b88b4b58d
3 changed files with 33 additions and 9 deletions

View File

@@ -107,12 +107,22 @@ switch (post('op')) {
// Ordinamento moduli di primo livello
case 'sortmodules':
$ids = explode(',', post('ids'));
$ids = explode(',', $_POST['ids']);
for ($i = 0; $i < count($ids); ++$i) {
$dbo->query('UPDATE zz_modules SET `order`='.prepare($i).' WHERE id='.prepare($ids[$i]));
/*$rs = $dbo->fetchArray('SELECT id, name FROM zz_modules WHERE id='.prepare($ids[$i]));
$voce = $rs[0]['name'];
$_SESSION['infos'][] = tr('Posizione della voce _VOCE_ aggiornata!', [
'_VOCE_' => '"'.$voce.'"',
]);*/
}
$_SESSION['infos'][] = tr('Posizione voci di menù aggiornate!');
break;
case 'sortwidget':