From: cajus Date: Wed, 2 Sep 2009 14:50:22 +0000 (+0000) Subject: Add workaround for actionmenu with single actions X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c1a7b34fb5b5ca0258dd6c79caff436a65968195;p=gosa.git Add workaround for actionmenu with single actions git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14194 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_listing.inc b/gosa-core/include/class_listing.inc index 1f819c2d2..b6b6162db 100644 --- a/gosa-core/include/class_listing.inc +++ b/gosa-core/include/class_listing.inc @@ -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= "
".