From 0476bb00327df0b9a198c9922bbf6e1d3dc8261e Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 27 Apr 2005 20:48:53 +0000 Subject: [PATCH] fixed not working (first) selection of a filter --- etemplate/inc/class.nextmatch_widget.inc.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/etemplate/inc/class.nextmatch_widget.inc.php b/etemplate/inc/class.nextmatch_widget.inc.php index 590a14b506..bee5d6fc78 100644 --- a/etemplate/inc/class.nextmatch_widget.inc.php +++ b/etemplate/inc/class.nextmatch_widget.inc.php @@ -308,8 +308,9 @@ $inputs = array('search','cat_id','filter','filter2'); foreach($inputs as $name) { - if (isset($value['bottom'][$name]) && $value['bottom'][$name] != $old_value[$name]) + if (isset($value['bottom'][$name]) && $value[$name] == $old_value[$name]) { + //echo "value[$name] overwritten by bottom-value[$name]='".$value['bottom'][$name]."', old_value[$name]='".$old_value[$name]."'
\n"; $value[$name] = $value['bottom'][$name]; } } @@ -325,8 +326,8 @@ } if ($value['start_search'] || $value['search'] != $old_value['search'] || isset($value['cat_id']) && $value['cat_id'] != $old_value['cat_id'] || - $old_value['filter'] != '' && isset($value['filter']) && $value['filter'] != $old_value['filter'] || - $old_value['filter2'] != '' && isset($value['filter2']) && $value['filter2'] != $old_value['filter2']) + isset($value['filter']) && $value['filter'] != $old_value['filter'] || + isset($value['filter2']) && $value['filter2'] != $old_value['filter2']) { //echo "

search='$old_value[search]'->'$value[search]', filter='$old_value[filter]'->'$value[filter]', filter2='$old_value[filter2]'->'$value[filter2]'
"; //echo "new filter --> loop

";