From: hickert Date: Thu, 26 Nov 2009 16:31:23 +0000 (+0000) Subject: Updated roles X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c3dffb3f75cb0d522364b87720e353b0bc55a73e;p=gosa.git Updated roles -do not collect visiual related data until we've seen the ui git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14838 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/rolemanagement/admin/roleManagement/class_roleGeneric.inc b/gosa-plugins/rolemanagement/admin/roleManagement/class_roleGeneric.inc index 6674ddf94..c07e1edd8 100644 --- a/gosa-plugins/rolemanagement/admin/roleManagement/class_roleGeneric.inc +++ b/gosa-plugins/rolemanagement/admin/roleManagement/class_roleGeneric.inc @@ -50,6 +50,8 @@ class roleGeneric extends plugin { var $attributes = array("cn","description", "telephoneNumber","facsimileTelephoneNumber","roleOccupant"); + // + var $objCacheLoaded = FALSE; /* Initialize the class */ @@ -76,9 +78,6 @@ class roleGeneric extends plugin { $this->orig_base = $this->base; $this->orig_dn = $dn; $this->orig_cn = $this->cn; - - // Reload the occupant cache. - $this->reload(); } @@ -131,6 +130,11 @@ class roleGeneric extends plugin { // Get list of possible ldap bases, will be selectable in the ui. $tmp = $this->allowedBasesToMoveTo(); + // Reload the occupant cache. + if(!$this->objCacheLoaded){ + $this->reload(); + $this->objCacheLoaded = TRUE; + } /*************** * Dialog handling