if ($field["type"] == "enum") {
return (isset($_GET["select"]) ? "<label><input type='radio'$attrs value='-1' checked><i>" . lang('original') . "</i></label> " : "")
. ($field["null"] ? "<label><input type='radio'$attrs value=''" . ($value !== null || isset($_GET["select"]) ? "" : " checked") . "><i>NULL</i></label> " : "")
- . enum_input("radio", $attrs, $field, $value, 0) // 0 - empty
+ . enum_input("radio", $attrs, $field, $value, $value === 0 ? 0 : null) // 0 - empty value
;
}
return "";
Adminer 4.17.0-dev:
Hide index column options by default
MySQL, PostgreSQL, MS SQL: Support CHECK constraint
+MySQL: Don't offer empty enum value in edit
PostgreSQL: Link user defined types
PostgreSQL: Constraint enum values in editing (bug #270)
SQLite: Show all supported pragmas in Variables
? Branch binary_compile: LZW compression of all texts can save 11 KB, using chars 127-255 in minification can save 1 KB
https://github.com/vrana/adminer/compare/master...adminneo-org:adminneo:main
-MySQL: Do not show 'empty' enum value in strict mode
MySQL: Print comments of stored procedures and functions
Add drag-n-drop moving of rows in table editing
PostgreSQL: Show list of schemas in database