From d6d22d7c4a6c7c22e53d7fa91985bd649aeb4206 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 23 Apr 2010 11:49:55 +0000 Subject: [PATCH] Do not reload the object references on each page reload git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17817 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../generic/references/class_reference.inc | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/gosa-core/plugins/generic/references/class_reference.inc b/gosa-core/plugins/generic/references/class_reference.inc index 9687cb031..641f06192 100644 --- a/gosa-core/plugins/generic/references/class_reference.inc +++ b/gosa-core/plugins/generic/references/class_reference.inc @@ -74,12 +74,6 @@ class reference extends plugin 'filter' => "(&(objectClass=gosaAccount)(manager=".normalizeLdap($this->dn)."))", 'attrs' => array('givenName' => _("Given name"),'sn' => _("Surname"),'uid'=>_("Uid")), 'msg' => _("User manager")); - } - - function execute() - { - // Mark plugin as viewed - plugin::execute(); // Go through filters and detect possible references $ldap = $this->config->get_ldap_link(); @@ -118,16 +112,21 @@ class reference extends plugin $str .= "
"; } } + $this->objectList = $str; + } + + function execute() + { + // Mark plugin as viewed + plugin::execute(); $smarty = get_smarty(); - $smarty->assign('objectList', $str); + $smarty->assign('objectList', $this->objectList); $smarty->assign("acls",$this->aclResolver->getReadableACL()); $smarty->assign("usePrototype", "true"); session::set('autocomplete', $this->aclResolver); return ($smarty->fetch (get_template_path('contents.tpl', TRUE, dirname(__FILE__)))); } - - } ?> -- 2.30.2