Commit 11e2c9ec3a249ed6c3bf7880cd0875976d860fef

Authored by andryeyev
1 parent 0e2718b7

fix Меню: Сортировка (по уровню + sortorder)

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
common/models/Menu.php
@@ -34,7 +34,7 @@ class Menu extends \yii\db\ActiveRecord @@ -34,7 +34,7 @@ class Menu extends \yii\db\ActiveRecord
34 AND `page_lang`.lang_id = '.yii::$app->lang_id.' 34 AND `page_lang`.lang_id = '.yii::$app->lang_id.'
35 INNER JOIN `template` ON `template`.template_id = `page`.template_id 35 INNER JOIN `template` ON `template`.template_id = `page`.template_id
36 WHERE `menu`.show = 1 36 WHERE `menu`.show = 1
37 - ORDER BY `menu`.menu_pid ASC, `menu`.sortorder ASC 37 + ORDER BY `menu`.level ASC, `menu`.sortorder ASC
38 ')->queryAll(); 38 ')->queryAll();
39 /* 39 /*
40 return $this->find() 40 return $this->find()