Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
List Teams even if regexp is null and mandatory
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Mar 1, 2016
1 parent 729c615 commit dd3c570
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion core/src/plugins/core.conf/class.AbstractConfDriver.php
Expand Up @@ -1104,7 +1104,14 @@ public function switchAction($action, $httpVars, $fileVars)
else $regexp = null;
$skipDisplayWithoutRegexp = ConfService::getCoreConf("USERS_LIST_REGEXP_MANDATORY", "conf");
if($skipDisplayWithoutRegexp && $regexp == null){
print("<ul></ul>");
$users = "";
if (method_exists($this, "listUserTeams")) {
$teams = $this->listUserTeams();
foreach ($teams as $tId => $tData) {
$users.= "<li class='complete_group_entry' data-group='/AJXP_TEAM/$tId' data-label=\"[team] ".$tData["LABEL"]."\"><span class='user_entry_label'>[team] ".$tData["LABEL"]."</span></li>";
}
}
print("<ul>$users</ul>");
break;
}
$limit = intval(ConfService::getCoreConf("USERS_LIST_COMPLETE_LIMIT", "conf"));
Expand Down

0 comments on commit dd3c570

Please sign in to comment.