From bcbc42135d72e53ae3cb51eee288e00163d74b89 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 24 Jun 2013 20:49:27 +0000 Subject: [PATCH] Fix country filters - custom filters with type select now modified to nextmatch-filterheader, not regular select --- .../inc/class.etemplate_widget_nextmatch.inc.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/etemplate/inc/class.etemplate_widget_nextmatch.inc.php b/etemplate/inc/class.etemplate_widget_nextmatch.inc.php index f57d657a04..0c31774910 100644 --- a/etemplate/inc/class.etemplate_widget_nextmatch.inc.php +++ b/etemplate/inc/class.etemplate_widget_nextmatch.inc.php @@ -1082,13 +1082,18 @@ class etemplate_widget_nextmatch_customfilter extends etemplate_widget_transform public function beforeSendToClient($cname) { switch($this->attrs['type']) - { - case "link-entry": + { + case "link-entry": self::$transformation['type'] = $this->attrs['type'] = 'nextmatch-entryheader'; - break; - default: + break; + default: + list($type, $subtype) = explode('-',$this->attrs['type'],2); + if($type == 'select') + { + $this->attrs['type'] = 'nextmatch-filterheader'; + } self::$transformation['type'] = $this->attrs['type']; - } + } $form_name = self::form_name($cname, $this->id, $expand); // Don't need simple onchanges, it's ajax