From 72b9e280dff365c0f4c868b46f4a97f080255003 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 20 Jan 2013 19:14:16 +0000 Subject: [PATCH] fixed double refresh data --- lam/lib/lists.inc | 11 +++++++++++ 1 file changed, 11 insertions(+) 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.