From 751c7d6b2db0d708c261e643bf843ce402aa629f Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 11 Jan 2010 10:11:14 +0000 Subject: [PATCH] Allow to set multiple dependencies for listing actions : - e.g. {{{ createISO entry gotoWorkstation FAIobject plugins/systems/images/cdrom.png workstation/workgeneric[createFAICD:w] }}} git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15136 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_listing.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gosa-core/include/class_listing.inc b/gosa-core/include/class_listing.inc index 3b83e0811..8802c2523 100644 --- a/gosa-core/include/class_listing.inc +++ b/gosa-core/include/class_listing.inc @@ -854,11 +854,16 @@ class listing { $result.= " "; continue; } - } else { + } elseif (is_string($objectclass)) { if(!in_array($objectclass, $classes)) { $result.= " "; continue; } + } elseif (is_array($objectclass)) { + if(count(array_intersect($objectclass, $classes)) == count($objectclass)){ + $result.= " "; + continue; + } } } -- 2.30.2