]> git.joonet.de Git - adminer.git/commitdiff
MSSQL: use textarea in edit form for Memo type (#357)
authorJakub Vokoun <jakub.vokoun+github@gmail.com>
Wed, 21 Aug 2019 11:13:16 +0000 (13:13 +0200)
committerJakub Vrána <jakub@vrana.cz>
Wed, 21 Aug 2019 11:13:16 +0000 (13:13 +0200)
Signed-off-by: Jakub Vokoun <jakub.vokoun@gmail.com>
adminer/include/functions.inc.php

index afefa93f292109f96f46a3bc2b05c3ecb9fb01cb..c8d986521ccc52abdf1b98b72c66b21ab70f0400 100644 (file)
@@ -960,7 +960,7 @@ function input($field, $value, $function) {
                        }
                } elseif (preg_match('~blob|bytea|raw|file~', $field["type"]) && ini_bool("file_uploads")) {
                        echo "<input type='file' name='fields-$name'>";
-               } elseif (($text = preg_match('~text|lob~', $field["type"])) || preg_match("~\n~", $value)) {
+               } elseif (($text = preg_match('~text|lob|memo~i', $field["type"])) || preg_match("~\n~", $value)) {
                        if ($text && $jush != "sqlite") {
                                $attrs .= " cols='50' rows='12'";
                        } else {