Skip to content

Commit f25f3de

Browse files
committed
fix ElementsInTree should be sorted by name #887
1 parent a191ca1 commit f25f3de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assets/plugins/elementsintree/includes/functions.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ function createModulesList($action)
190190
'(mg.member IS NULL OR mg.member=%s) AND sm.disabled!=1 AND sm.locked!=1',
191191
$modx->getLoginUserID()
192192
),
193-
'4,2'
193+
'ISNULL(catname), 4,2'
194194
);
195195
} else {
196196
$query = $modx->db->select(
@@ -200,7 +200,7 @@ function createModulesList($action)
200200
'LEFT JOIN [+prefix+]categories as cats ON sm.category=cats.id'
201201
),
202202
'sm.disabled!=1',
203-
'4,2'
203+
'ISNULL(catname), 4,2'
204204
);
205205
}
206206

0 commit comments

Comments
 (0)