Code

Fixed undefined index in objectGroup initialization.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 20 Nov 2007 06:55:23 +0000 (06:55 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 20 Nov 2007 06:55:23 +0000 (06:55 +0000)
Added remove too, ogroup layer menu

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

plugins/admin/ogroups/class_divListOGroup.inc
plugins/admin/ogroups/tabs_ogroups.inc

index 720f7530feed95fe3838e53339f66b65da7b0e4c..c0e96a7c99ae1c5d3117fc3799a0a721424c57a1 100755 (executable)
@@ -176,8 +176,11 @@ class divListOGroup extends MultiSelectWindow
 
     /* Multiple options */
     $s.= "..|---|\n";
-    $s.= "..|<img src='images/edit.png' alt='' border='0' class='center'>".
-      "&nbsp;"._("Edit")."|"."multiple_edit|\n";
+#    $s.= "..|<img src='images/edit.png' alt='' border='0' class='center'>".
+#      "&nbsp;"._("Edit")."|"."multiple_edit|\n";
+
+    $s.= "..|<img src='images/edittrash.png' alt='' border='0' class='center'>".
+      "&nbsp;"._("Remove")."|"."remove_multiple_ogroups/|\n";
 
     /* Add multiple copy & cut icons */
     if(is_object($this->parent->CopyPasteHandler) && preg_match("/(c.*w|w.*c)/",$acl_all)){
index d820aa5b8fda87ae75e8830eeb19cac56f70573b..3485bb79f6f9462bd603abc451b67f9658e5ffeb 100644 (file)
@@ -14,10 +14,12 @@ class ogrouptabs extends tabs
     $usePhoneTab = false;
     foreach($this->by_object['ogroup']->memberList as $dn => $val){
 
-      $obj = $this->by_object['ogroup']->objcache[$dn];
-      if(isset($obj['objectClass'])){
-        if(in_array("goFonAccount",$obj['objectClass'])){
-          $usePhoneTab = true;
+      if(isset($this->by_object['ogroup']->objcache[$dn])){
+        $obj = $this->by_object['ogroup']->objcache[$dn];
+        if(isset($obj['objectClass'])){
+          if(in_array("goFonAccount",$obj['objectClass'])){
+            $usePhoneTab = true;
+          }
         }
       }
     }
@@ -61,14 +63,16 @@ class ogrouptabs extends tabs
     if(!isset($this->by_object['phonequeue'])){
       foreach($this->by_object['ogroup']->memberList as $dn => $val){
 
-        $obj = $this->by_object['ogroup']->objcache[$dn];
-  
-        if(isset($obj['objectClass'])){
-          if(in_array("goFonAccount",$obj['objectClass'])){
-            $this->by_name['phonequeue']= _("Phone queue");
-            $this->by_object['phonequeue']= new phonequeue($this->config, $this->dn);
-            $this->by_object['phonequeue']->parent= &$this;
-            break;
+        if(isset($this->by_object['ogroup']->objcache[$dn])){
+          $obj = $this->by_object['ogroup']->objcache[$dn];
+
+          if(isset($obj['objectClass'])){
+            if(in_array("goFonAccount",$obj['objectClass'])){
+              $this->by_name['phonequeue']= _("Phone queue");
+              $this->by_object['phonequeue']= new phonequeue($this->config, $this->dn);
+              $this->by_object['phonequeue']->parent= &$this;
+              break;
+            }
           }
         }
       }