Explorar o código

use textarea for long varchar

Piotr Labudda %!s(int64=10) %!d(string=hai) anos
pai
achega
0c7b800cc9
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      SE/se-lib/TableAcl.php

+ 8 - 0
SE/se-lib/TableAcl.php

@@ -444,6 +444,14 @@ class TableAcl {
 				}
 				*/
 			}
+
+			if ($maxLength > 255) {// Fix for long varchar - use textarea
+				$html->tag = 'textarea';
+				$html->cnt = htmlspecialchars($fValue);
+				$html->attrs['rows'] = '3';
+				unset($html->attrs['type']);
+				unset($html->attrs['value']);
+			}
 		}
 		else if (substr($colType['type'], 0, 4) == 'date') {
 			$testDatePicker = true;