MSSQL: use textarea in edit form for Memo type (#357)

Signed-off-by: Jakub Vokoun <jakub.vokoun@gmail.com>
This commit is contained in:
Jakub Vokoun 2019-08-21 13:13:16 +02:00 committed by Jakub Vrána
parent f692b6498f
commit 3d32470b87

View 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 {