Code

Add workaround for actionmenu with single actions
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 2 Sep 2009 14:50:22 +0000 (14:50 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 2 Sep 2009 14:50:22 +0000 (14:50 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14194 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_listing.inc

index 1f819c2d213bd9b3d34cd6ac92285aaf30b34afe..b6b6162db9fa12144c6a2f86d9775d2e5161fe84 100644 (file)
@@ -991,6 +991,11 @@ class listing {
       return "";
     }
 
+    // Array?
+    if (isset($this->xmlData['actionmenu']['action']['type'])){
+      $this->xmlData['actionmenu']['action']= array($this->xmlData['actionmenu']['action']);
+    }
+
     // Load shortcut
     $actions= &$this->xmlData['actionmenu']['action'];
     $result= "<input type='hidden' name='act' id='actionmenu' value=''><div style='display:none'><input type='submit' name='exec_act' id='exec_act' value=''></div>".