Skip to content

Commit f9b86c8

Browse files
committed
FOUR-14579
1 parent 24aa680 commit f9b86c8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎ProcessMaker/Models/Setting.php‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,12 +386,16 @@ public static function groupsByMenu($menuId)
386386
->select('group')
387387
->groupBy('group')
388388
->where('group_id', $menuId)
389+
->orderBy('group', 'ASC')
389390
->notHidden()
390391
->pluck('group');
391392
$response = $query->toArray();
392393
$result = [];
393394
foreach ($response as &$value) {
394395
// Technical debts: we need to add int key to identify a group, currently this is a label
396+
if (strpos($value, "SSO -") === 0) {
397+
$value = "- " . $value;
398+
}
395399
$result[] = [
396400
'id' => $value,
397401
'name' => $value,

0 commit comments

Comments
 (0)