MSSQL: use textarea in edit form for Memo type (#357)
Signed-off-by: Jakub Vokoun <jakub.vokoun@gmail.com>
This commit is contained in:
parent
f692b6498f
commit
3d32470b87
|
@ -960,7 +960,7 @@ function input($field, $value, $function) {
|
||||||
}
|
}
|
||||||
} elseif (preg_match('~blob|bytea|raw|file~', $field["type"]) && ini_bool("file_uploads")) {
|
} elseif (preg_match('~blob|bytea|raw|file~', $field["type"]) && ini_bool("file_uploads")) {
|
||||||
echo "<input type='file' name='fields-$name'>";
|
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") {
|
if ($text && $jush != "sqlite") {
|
||||||
$attrs .= " cols='50' rows='12'";
|
$attrs .= " cols='50' rows='12'";
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue