From 74aa3cf08cda771dc6e267828232eb6339584287 Mon Sep 17 00:00:00 2001 From: Bacca97 Date: Wed, 31 Jan 2018 10:42:42 +0100 Subject: [PATCH] Fix, aggiunto ordinamento sottomenu --- src/Modules.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Modules.php b/src/Modules.php index 4f77f01f3..291411f54 100644 --- a/src/Modules.php +++ b/src/Modules.php @@ -316,7 +316,7 @@ class Modules $query .= ' LEFT JOIN `zz_modules` AS `t'.$i.'` ON `t'.$i.'`.`parent` = `t'.($i - 1).'`.`id`'; } - $query .= ' WHERE `t0`.`parent` IS NULL ORDER BY `t0`.`order` ASC'; + $query .= ' WHERE `t0`.`parent` IS NULL ORDER BY `t0`.`order` ASC, `t1`.`order` ASC, `t2`.`order` ASC'; $modules = $database->fetchArray($query);