Permalink
Browse files

Need to have type without length here

  • Loading branch information...
1 parent 1ec4659 commit ad8f4cea4f418f0b4e85616ea5d58d10a1aa77cc @nijel nijel committed May 29, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 tbl_select.php
  2. +2 −2 tbl_zoom_select.php
View
2 tbl_select.php
@@ -137,7 +137,7 @@
<td><select name="func[]">
<?php
echo $GLOBALS['PMA_Types']->getTypeOperatorsHtml(
- $fields_type[$i],
+ preg_replace('@\(.*@s', '', $fields_type[$i]),
$fields_null[$i]
);
?>
View
4 tbl_zoom_select.php
@@ -112,7 +112,7 @@
// HTML for operators
$html = '<select name="zoomFunc[]">';
$html .= $GLOBALS['PMA_Types']->getTypeOperatorsHtml(
- $fields_type[$key],
+ preg_replace('@\(.*@s', '', $fields_type[$i]),
@zixtor
zixtor added a line comment May 29, 2012

Hi Michal,
There should be $key in place of $i. I am getting this in zoom search.

Notice in ./tbl_zoom_select.php#115
Undefined variable: i

@nijel
phpMyAdmin member
nijel added a line comment May 30, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
$fields_null[$key]
);
$html .= '</select>';
@@ -251,7 +251,7 @@
</tr>
<tr><td>
<input type="hidden" name="types[<?php echo $i; ?>]" id="types_<?php echo $i; ?>"
- <?php
+ <?php
if (isset($_POST['types'][$i])) {
echo 'value="' . $_POST['types'][$i] . '"';
}

0 comments on commit ad8f4ce

Please sign in to comment.