mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
support CFs for multiple types in the type-filter
This commit is contained in:
parent
93c4f397b3
commit
7cb135c43e
@ -67,6 +67,15 @@ class admin_customfields
|
||||
*/
|
||||
protected $content_type = null;
|
||||
|
||||
/**
|
||||
* @var Api\Storage\Base
|
||||
*/
|
||||
protected $so;
|
||||
/**
|
||||
* @var Api\Db
|
||||
*/
|
||||
protected $db;
|
||||
|
||||
var $public_functions = array(
|
||||
'index' => true,
|
||||
'edit' => True
|
||||
@ -124,6 +133,7 @@ class admin_customfields
|
||||
$this->content_types = Api\Config::get_content_types($this->appname);
|
||||
}
|
||||
$this->so = new Api\Storage\Base('api','egw_customfields',null,'',true);
|
||||
$this->db = $GLOBALS['egw']->db;
|
||||
|
||||
// Make sure app css & lang get loaded, extending app might cause et2 to miss it
|
||||
Framework::includeCSS('admin','app');
|
||||
@ -764,7 +774,7 @@ class admin_customfields
|
||||
}
|
||||
else
|
||||
{
|
||||
$query['col_filter'][0] = '(cf_type2 IS NULL OR cf_type2='.$GLOBALS['egw']->db->quote($t2).')';
|
||||
$query['col_filter'][0] = '(cf_type2 IS NULL OR '.$this->db->concat("','", 'cf_type2', "','").' LIKE '.$GLOBALS['egw']->db->quote('%,'.$t2.',%').')';
|
||||
}
|
||||
unset($query['col_filter']['cf_type2']);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user