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:
authorPiotr Przybylski <piotrprz@gmail.com>2011-09-02 17:21:18 +0400
committerPiotr Przybylski <piotrprz@gmail.com>2011-09-02 17:21:18 +0400
commitf4f3d46989cc18f1ccfbca193788bd4de0018305 (patch)
treef67b7a947d466761c4d8c4ed5fac4375e09e4f93 /tbl_change.php
parentf6da9031f9ac6545c87422cb6dd5fd271be6419d (diff)
length is unknown for geometry fields, make enough space to edit very simple WKTs (text fields were 4 characters wide)
Diffstat (limited to 'tbl_change.php')
-rw-r--r--tbl_change.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tbl_change.php b/tbl_change.php
index 6024d80425..5395ddabde 100644
--- a/tbl_change.php
+++ b/tbl_change.php
@@ -458,6 +458,10 @@ foreach ($rows as $row_id => $vrow) {
if (-1 === $field['len']) {
$field['len'] = PMA_DBI_field_len($vresult, $i);
+ // length is unknown for geometry fields, make enough space to edit very simple WKTs
+ if (-1 === $field['len']) {
+ $field['len'] = 30;
+ }
}
//Call validation when the form submited...
$unnullify_trigger = $chg_evt_handler . "=\"return verificationsAfterFieldChange('". PMA_escapeJsString($field['Field_md5']) . "', '"