reload LDAP data if account status is shown

This commit is contained in:
Roland Gruber 2012-04-19 17:18:14 +00:00
parent aa9f567894
commit cc4f6161fb
1 changed files with 5 additions and 0 deletions

View File

@ -619,7 +619,12 @@ class lamUserList extends lamList {
$tpOption = $this->listGetConfigOptionByID(self::TRANS_PRIMARY_OPTION_NAME);
$this->trans_primary = $tpOption->isSelected();
$asOption = $this->listGetConfigOptionByID(self::ACCOUNT_STATUS_OPTION_NAME);
// if account status was activated, reload LDAP data
$asOptionOldValue = $this->showAccountStatus;
$this->showAccountStatus = $asOption->isSelected();
if ($this->showAccountStatus && !$asOptionOldValue) {
$this->listRefreshData();
}
}
/**