From: cajus Date: Fri, 6 Nov 2009 08:54:43 +0000 (+0000) Subject: Add checkin X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b0c469f706275a95644e29061e3e3975ba055dd0;p=gosa.git Add checkin git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14771 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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") {