From b0c469f706275a95644e29061e3e3975ba055dd0 Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 6 Nov 2009 08:54:43 +0000 Subject: [PATCH] Add checkin git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14771 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_filter.inc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gosa-core/include/class_filter.inc b/gosa-core/include/class_filter.inc index 64cfded3d..885643d1e 100644 --- a/gosa-core/include/class_filter.inc +++ b/gosa-core/include/class_filter.inc @@ -214,6 +214,18 @@ class filter { } + function setComboBoxOptions($tag, $options) + { + if (isset($this->elements[$tag]) && $this->elements[$tag]['type'] == "combobox") { + + $this->elements[$tag]['value']= array(); + foreach ($options as $key => $label) { + $this->elements[$tag]['value'][]= array('label' => $label, 'key' => $key); + } + } + } + + function getCurrentBase() { if (isset($this->search->base) && (string)$this->search->scope != "auto") { -- 2.30.2