From abf1aa2e87eb0277230c2b0501287ff1c7be4588 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 4 Nov 2009 09:36:20 +0000 Subject: [PATCH] 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 --- gosa-core/include/class_listing.inc | 6 ++++++ 1 file changed, 6 insertions(+) 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= ""; -- 2.30.2