From c1a7b34fb5b5ca0258dd6c79caff436a65968195 Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 2 Sep 2009 14:50:22 +0000 Subject: [PATCH] Add workaround for actionmenu with single actions git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14194 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_listing.inc | 5 +++++ 1 file changed, 5 insertions(+) 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= "
". -- 2.30.2