fixed missing types

This commit is contained in:
Roland Gruber 2017-12-13 10:59:16 +01:00
parent c8cd42eddc
commit 3eaeaa6c30
1 changed files with 3 additions and 8 deletions

View File

@ -76,12 +76,14 @@ foreach ($types as $type) {
if ($type->isHidden() || !checkIfWriteAccessIsAllowed($type->getId())) {
continue;
}
$profileList = \LAM\PROFILES\getAccountProfiles($type->getId());
natcasesort($profileList);
$profileClassesTemp[$type->getAlias()] = array(
'typeId' => $type->getId(),
'scope' => $type->getScope(),
'title' => $type->getAlias(),
'icon' => $type->getIcon(),
'profiles' => "");
'profiles' => $profileList);
}
$profileClassesKeys = array_keys($profileClassesTemp);
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'])) {
$message = new htmlStatusMessage("INFO", _("Profile was saved."), htmlspecialchars($_GET['savedSuccessfully']));
$message->colspan = 10;