diff --git a/lam/lib/lists.inc b/lam/lib/lists.inc index 4f89e6f5..8a90bf25 100644 --- a/lam/lib/lists.inc +++ b/lam/lib/lists.inc @@ -914,6 +914,17 @@ class lamList { $this->possibleSuffixes = $typeObj->getSuffixList(); } + /** + * Forces a refresh of the LDAP data. + * Function must be called before $this->refresh option is checked to load new LDAP data (e.g. in listGetParams). + */ + protected function forceRefresh() { + $this->refresh = true; + if (isset($_GET['norefresh'])) { + unset($_GET['norefresh']); + } + } + /** * Returns a list of additional LDAP attributes that should be read. * This can be used to show additional data even if the user selected other attributes to show in the list.