From bab0096296279331bad42f0295df954a32bfef03 Mon Sep 17 00:00:00 2001 From: Atul Pratap Singh Date: Wed, 23 May 2012 22:13:58 +0530 Subject: [PATCH] Fixing broken table search feature due to function name changes --- tbl_select.php | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/tbl_select.php b/tbl_select.php index 8212a6c0a8..2209e309d6 100644 --- a/tbl_select.php +++ b/tbl_select.php @@ -123,7 +123,7 @@ function PMA_tblSearchBuildSqlQuery($table, $fields, $names, $types, $param, $order) { $sql_query = 'SELECT '; - if($is_distinct) { + if($is_distinct == 'true') { $sql_query .= 'DISTINCT '; } @@ -245,23 +245,22 @@ $geom_types, $column_index) } /** - * Displays formatted HTML for extra search options (slider) in table search form + * Generates formatted HTML for extra search options (slider) in table search form * * @param array $fields_list array containing types of all columns * in the table * @param integer $fields_cnt number of fields in the table * - * @return void + * @return string the generated HTML */ -function PMA_tblSearchDisplaySliderOptions($fields_list, $fields_cnt) -{ - PMA_generateSliderEffect('searchoptions', __('Options')); +function PMA_tblSearchGetSliderOptions($fields_list, $fields_cnt) +{ $html_output = ''; - + $html_output .= PMA_getDivForSliderEffect('searchoptions', __('Options')); /** * Displays columns select list for selecting distinct columns in the search */ - $html_output = '
' + $html_output .= '
' . '' . __('Select columns (at least one):') . '' . '