From: hickert Date: Wed, 4 Nov 2009 09:36:20 +0000 (+0000) Subject: updated listing class. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=abf1aa2e87eb0277230c2b0501287ff1c7be4588;p=gosa.git updated listing class. -Sub Actions in the menus required at least two entries to be displayed. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14738 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_listing.inc b/gosa-core/include/class_listing.inc index 39342d9fe..10c05d965 100644 --- a/gosa-core/include/class_listing.inc +++ b/gosa-core/include/class_listing.inc @@ -1093,6 +1093,12 @@ class listing { if (isset($action['label'])){ $result.= "$img"._($action['label'])." "; } + + // Ensure we've an array of actions, this enables sub menus with only one action. + if(isset($action['action']['type'])){ + $action['action'] = array($action['action']); + } + $result.= $this->recurseActions($action['action']).""; $level--; $separator= "";