1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-01-29 23:14:55 +01:00
This commit is contained in:
Luca 2020-01-09 18:34:01 +01:00
commit f3c5e68ce9

View File

@ -216,7 +216,7 @@ switch ($resource) {
break;
case 'categorie':
$query = 'SELECT id, nome AS descrizione FROM mg_categorie |where| ORDER BY id';
$query = 'SELECT id, nome AS descrizione FROM mg_categorie |where| ORDER BY nome';
foreach ($elements as $element) {
$filter[] = 'id='.prepare($element);
@ -232,7 +232,7 @@ switch ($resource) {
case 'sottocategorie':
if (isset($superselect['id_categoria'])) {
$query = 'SELECT id, nome AS descrizione FROM mg_categorie |where| ORDER BY id';
$query = 'SELECT id, nome AS descrizione FROM mg_categorie |where| ORDER BY nome';
foreach ($elements as $element) {
$filter[] = 'id='.prepare($element);