mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 04:31:32 +00:00
order groups by name in getAccessList()
This commit is contained in:
parent
e80987de9a
commit
229ae54234
|
@ -1999,16 +1999,16 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
||||||
if ($defAccess < M_READ) {
|
if ($defAccess < M_READ) {
|
||||||
if (strlen($groupIDs)>0) {
|
if (strlen($groupIDs)>0) {
|
||||||
$queryStr = "SELECT `tblGroups`.* FROM `tblGroups` ".
|
$queryStr = "SELECT `tblGroups`.* FROM `tblGroups` ".
|
||||||
"WHERE `tblGroups`.`id` IN (". $groupIDs .")";
|
"WHERE `tblGroups`.`id` IN (". $groupIDs .") ORDER BY `name`";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (strlen($groupIDs)>0) {
|
if (strlen($groupIDs)>0) {
|
||||||
$queryStr = "SELECT `tblGroups`.* FROM `tblGroups` ".
|
$queryStr = "SELECT `tblGroups`.* FROM `tblGroups` ".
|
||||||
"WHERE `tblGroups`.`id` NOT IN (". $groupIDs .")";
|
"WHERE `tblGroups`.`id` NOT IN (". $groupIDs .") ORDER BY `name`";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$queryStr = "SELECT `tblGroups`.* FROM `tblGroups`";
|
$queryStr = "SELECT `tblGroups`.* FROM `tblGroups` ORDER BY `name`";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (strlen($queryStr)>0) {
|
if (strlen($queryStr)>0) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user