fixed missing types
This commit is contained in:
parent
c8cd42eddc
commit
3eaeaa6c30
|
@ -76,12 +76,14 @@ foreach ($types as $type) {
|
||||||
if ($type->isHidden() || !checkIfWriteAccessIsAllowed($type->getId())) {
|
if ($type->isHidden() || !checkIfWriteAccessIsAllowed($type->getId())) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
$profileList = \LAM\PROFILES\getAccountProfiles($type->getId());
|
||||||
|
natcasesort($profileList);
|
||||||
$profileClassesTemp[$type->getAlias()] = array(
|
$profileClassesTemp[$type->getAlias()] = array(
|
||||||
'typeId' => $type->getId(),
|
'typeId' => $type->getId(),
|
||||||
'scope' => $type->getScope(),
|
'scope' => $type->getScope(),
|
||||||
'title' => $type->getAlias(),
|
'title' => $type->getAlias(),
|
||||||
'icon' => $type->getIcon(),
|
'icon' => $type->getIcon(),
|
||||||
'profiles' => "");
|
'profiles' => $profileList);
|
||||||
}
|
}
|
||||||
$profileClassesKeys = array_keys($profileClassesTemp);
|
$profileClassesKeys = array_keys($profileClassesTemp);
|
||||||
natcasesort($profileClassesKeys);
|
natcasesort($profileClassesKeys);
|
||||||
|
@ -188,13 +190,6 @@ if (!empty($_POST['export'])) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// get list of profiles for each account type
|
|
||||||
foreach ($profileClasses as &$profileClass) {
|
|
||||||
$profileList = \LAM\PROFILES\getAccountProfiles($profileClass['typeId']);
|
|
||||||
natcasesort($profileList);
|
|
||||||
$profileClass['profiles'] = $profileList;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isset($_GET['savedSuccessfully'])) {
|
if (isset($_GET['savedSuccessfully'])) {
|
||||||
$message = new htmlStatusMessage("INFO", _("Profile was saved."), htmlspecialchars($_GET['savedSuccessfully']));
|
$message = new htmlStatusMessage("INFO", _("Profile was saved."), htmlspecialchars($_GET['savedSuccessfully']));
|
||||||
$message->colspan = 10;
|
$message->colspan = 10;
|
||||||
|
|
Loading…
Reference in New Issue