From c619a5d1ec25203a195d078f3f5c8ef85a085e53 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Fri, 25 Sep 2009 14:17:41 +0000 Subject: [PATCH] Clear filter button no longer needed, link-entry handles it --- etemplate/inc/class.nextmatch_widget.inc.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/etemplate/inc/class.nextmatch_widget.inc.php b/etemplate/inc/class.nextmatch_widget.inc.php index ccf79a772e..5a01e6eda1 100644 --- a/etemplate/inc/class.nextmatch_widget.inc.php +++ b/etemplate/inc/class.nextmatch_widget.inc.php @@ -582,15 +582,7 @@ class nextmatch_widget etemplate::add_child($cell,$header); unset($header); - if(!$nm_global['col_filter'][self::CF_PREFIX.$name]) { - $header =& etemplate::empty_cell('label', ''); - } else { - // Add a button so they can clear this filter - $header =& etemplate::empty_cell('button', $cell_name . '[' . self::CF_PREFIX . $name . '_clear]', array( - 'label' => 'search', - 'size' => 'delete' - )); - } + $header =& etemplate::empty_cell('label', ''); $value[self::CF_PREFIX.$name] = $field['type'] . ':' . $nm_global['col_filter'][self::CF_PREFIX.$name]; } else @@ -942,9 +934,6 @@ class nextmatch_widget } foreach($this->cfs as $name => $field) { if($GLOBALS['egw_info']['apps'][$field['type']]) { - if($value_in[self::CF_PREFIX.$name.'_clear']) { - $value_in[self::CF_PREFIX.$name] = array(); - } if ((string)$value_in[self::CF_PREFIX.$name] != (string)$extension_data['old_value'][self::CF_PREFIX.$name]) { $nm_global['filter'][self::CF_PREFIX.$name] = $value_in[self::CF_PREFIX.$name]['id'];