Code

Updated management edit.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 20 Jul 2010 14:56:50 +0000 (14:56 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 20 Jul 2010 14:56:50 +0000 (14:56 +0000)
-The apply button was visible in multi edit

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@19026 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_management.inc

index d418c31f1072767f5ec9eeebca37119e465c7091..beef857772dde0cdf05974c25fa6c3b082e133a2 100644 (file)
@@ -628,9 +628,10 @@ class management
     if(!empty($altTabType)) $tabType = $altTabType;
     if(!empty($altAclCategory)) $aclCategory = $altAclCategory;
 
+    $this->displayApplyBtn = count($target) == 1;
+
     // Single edit - we only got one object dn.
     if(count($target) == 1){
-      $this->displayApplyBtn = TRUE;
       $this->is_new = FALSE;
       $this->is_single_edit = TRUE;
       $this->is_multiple_edit = FALSE;