]> git.joonet.de Git - adminer.git/commitdiff
Use editVal for set values
authorJakub Vrana <jakub@vrana.cz>
Thu, 10 Feb 2011 10:05:40 +0000 (11:05 +0100)
committerJakub Vrana <jakub@vrana.cz>
Thu, 10 Feb 2011 10:05:40 +0000 (11:05 +0100)
adminer/include/functions.inc.php
plugins/translation.php

index b71c4ead7aade22edcaa5d73a3a9b69697c54d1d..f82decc87f30f5965646ea4852dee72d2aa1f25d 100644 (file)
@@ -674,7 +674,7 @@ function input($field, $value, $function) {
                        foreach ($matches[1] as $i => $val) {
                                $val = stripcslashes(str_replace("''", "'", $val));
                                $checked = (is_int($value) ? ($value >> $i) & 1 : in_array($val, explode(",", $value), true));
-                               echo " <label><input type='checkbox' name='fields[$name][$i]' value='" . (1 << $i) . "'" . ($checked ? ' checked' : '') . "$onchange>" . h($val) . '</label>';
+                               echo " <label><input type='checkbox' name='fields[$name][$i]' value='" . (1 << $i) . "'" . ($checked ? ' checked' : '') . "$onchange>" . h($adminer->editVal($val, $field)) . '</label>';
                        }
                } elseif (ereg('blob|bytea|raw|file', $field["type"]) && ini_bool("file_uploads")) {
                        echo "<input type='file' name='fields-$name'$onchange>";
index c3e585db53fb1e729241252444c6dafa6bfe4403..026d76eba5b08db094a7832aebb3a69a93ea2b1a 100644 (file)
@@ -10,7 +10,7 @@ CREATE TABLE translation (
 );
 */
 
-/** Translate all table comments, field comments and enum values from the translation table (inserts new translations)
+/** Translate all table and field comments, enum and set values from the translation table (inserts new translations)
 * @author Jakub Vrana, http://www.vrana.cz/
 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)