Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use editVal for set values

  • Loading branch information...
commit 045bce3c9f2c1edc56b179e26c0235d4cb1fce48 1 parent 24fac38
@vrana authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  adminer/include/functions.inc.php
  2. +1 −1  plugins/translation.php
View
2  adminer/include/functions.inc.php
@@ -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>";
View
2  plugins/translation.php
@@ -10,7 +10,7 @@
);
*/
-/** 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)
Please sign in to comment.
Something went wrong with that request. Please try again.