From fba9f65ae3082cb29b4a9f2e78670b40cf16180d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cornelius=20Wei=C3=9F?= Date: Wed, 2 Nov 2005 16:48:24 +0000 Subject: [PATCH] add option "dosn't matter" to selectboxes in search-mode --- etemplate/inc/class.customfields_widget.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/etemplate/inc/class.customfields_widget.inc.php b/etemplate/inc/class.customfields_widget.inc.php index 2aff3b78eb..1de42d1618 100644 --- a/etemplate/inc/class.customfields_widget.inc.php +++ b/etemplate/inc/class.customfields_widget.inc.php @@ -42,6 +42,8 @@ //merge old config_name in phpgw_config table $config_name = isset($config['customfields']) ? 'customfields' : 'custom_fields'; $this->customfields = $config[$config_name]; + $this->advanced_search = $GLOBALS['egw_info']['etemplate']['advanced_search']; + } function pre_process($name,&$value,&$cell,&$readonlys,&$extension_data,&$tmpl) @@ -85,6 +87,7 @@ switch ($field['type']) { case 'select' : + if($this->advanced_search) $field['values'][''] = lang('doesn\'t matter'); foreach($field['values'] as $key => $val) { if (substr($val = lang($val),-1) != '*')