Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhura Jayaratne <madhura.cj@gmail.com>2012-08-06 20:14:16 +0400
committerMadhura Jayaratne <madhura.cj@gmail.com>2012-08-06 20:14:16 +0400
commit7e0028e4afab115a89a18c1257c6132aa123fd25 (patch)
treeefaed113520f658390afb49962a18e07a66f03dc /tbl_select.php
parent2d639ab5734a1609f02c2cb547e0e5969578ad4c (diff)
bug #3540922 [edit] Error searching table with many fields
Diffstat (limited to 'tbl_select.php')
-rw-r--r--tbl_select.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tbl_select.php b/tbl_select.php
index 81ca73403a..5e5114feee 100644
--- a/tbl_select.php
+++ b/tbl_select.php
@@ -33,7 +33,7 @@ $geom_types = PMA_getGISDatatypes();
/**
* Not selection yet required -> displays the selection form
*/
-if (! isset($param) || $param[0] == '') {
+if ((! isset($param) || $param[0] == '') && ! isset($displayAllColumns)) {
// Gets some core libraries
include_once './libraries/tbl_common.php';
//$err_url = 'tbl_select.php' . $err_url;
@@ -117,7 +117,7 @@ echo PMA_generate_html_tabs(PMA_tbl_getSubTabs(), $url_params, '', 'topmenu2');
<th><?php echo htmlspecialchars($fields_list[$i]); ?></th>
<td><?php echo htmlspecialchars($fields_type[$i]); ?></td>
<td><?php echo $fields_collation[$i]; ?></td>
- <td><select name="func[]">
+ <td><select name="func[<?php echo $i; ?>]">
<?php
if (strncasecmp($fields_type[$i], 'enum', 4) == 0) {
foreach ($GLOBALS['cfg']['EnumOperators'] as $fc) {
@@ -258,7 +258,7 @@ echo PMA_generate_html_tabs(PMA_tbl_getSubTabs(), $url_params, '', 'topmenu2');
// (more efficient and this helps prevent a problem in IE
// if one of the rows is edited and we come back to the Select results)
- if (count($param) == $max_number_of_fields) {
+ if (! empty($displayAllColumns) || count($param) == $max_number_of_fields) {
$sql_query .= '* ';
} else {
$param = PMA_backquote($param);