mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-15 02:19:36 +01:00
Fix country filters - custom filters with type select now modified to nextmatch-filterheader, not regular select
This commit is contained in:
parent
17634bd72a
commit
bcbc42135d
@ -1082,13 +1082,18 @@ class etemplate_widget_nextmatch_customfilter extends etemplate_widget_transform
|
|||||||
public function beforeSendToClient($cname)
|
public function beforeSendToClient($cname)
|
||||||
{
|
{
|
||||||
switch($this->attrs['type'])
|
switch($this->attrs['type'])
|
||||||
{
|
{
|
||||||
case "link-entry":
|
case "link-entry":
|
||||||
self::$transformation['type'] = $this->attrs['type'] = 'nextmatch-entryheader';
|
self::$transformation['type'] = $this->attrs['type'] = 'nextmatch-entryheader';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
list($type, $subtype) = explode('-',$this->attrs['type'],2);
|
||||||
|
if($type == 'select')
|
||||||
|
{
|
||||||
|
$this->attrs['type'] = 'nextmatch-filterheader';
|
||||||
|
}
|
||||||
self::$transformation['type'] = $this->attrs['type'];
|
self::$transformation['type'] = $this->attrs['type'];
|
||||||
}
|
}
|
||||||
$form_name = self::form_name($cname, $this->id, $expand);
|
$form_name = self::form_name($cname, $this->id, $expand);
|
||||||
|
|
||||||
// Don't need simple onchanges, it's ajax
|
// Don't need simple onchanges, it's ajax
|
||||||
|
Loading…
Reference in New Issue
Block a user