forked from extern/egroupware
add option "dosn't matter" to selectboxes in search-mode
This commit is contained in:
parent
519e6875d6
commit
fba9f65ae3
@ -42,6 +42,8 @@
|
|||||||
//merge old config_name in phpgw_config table
|
//merge old config_name in phpgw_config table
|
||||||
$config_name = isset($config['customfields']) ? 'customfields' : 'custom_fields';
|
$config_name = isset($config['customfields']) ? 'customfields' : 'custom_fields';
|
||||||
$this->customfields = $config[$config_name];
|
$this->customfields = $config[$config_name];
|
||||||
|
$this->advanced_search = $GLOBALS['egw_info']['etemplate']['advanced_search'];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function pre_process($name,&$value,&$cell,&$readonlys,&$extension_data,&$tmpl)
|
function pre_process($name,&$value,&$cell,&$readonlys,&$extension_data,&$tmpl)
|
||||||
@ -85,6 +87,7 @@
|
|||||||
switch ($field['type'])
|
switch ($field['type'])
|
||||||
{
|
{
|
||||||
case 'select' :
|
case 'select' :
|
||||||
|
if($this->advanced_search) $field['values'][''] = lang('doesn\'t matter');
|
||||||
foreach($field['values'] as $key => $val)
|
foreach($field['values'] as $key => $val)
|
||||||
{
|
{
|
||||||
if (substr($val = lang($val),-1) != '*')
|
if (substr($val = lang($val),-1) != '*')
|
||||||
|
Loading…
Reference in New Issue
Block a user