1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00
This commit is contained in:
Luca
2020-01-09 18:34:01 +01:00

View File

@@ -216,7 +216,7 @@ switch ($resource) {
break; break;
case 'categorie': 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) { foreach ($elements as $element) {
$filter[] = 'id='.prepare($element); $filter[] = 'id='.prepare($element);
@@ -232,7 +232,7 @@ switch ($resource) {
case 'sottocategorie': case 'sottocategorie':
if (isset($superselect['id_categoria'])) { 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) { foreach ($elements as $element) {
$filter[] = 'id='.prepare($element); $filter[] = 'id='.prepare($element);