Explorar el Código

use textarea for long varchar

Piotr Labudda hace 10 años
padre
commit
0c7b800cc9
Se han modificado 1 ficheros con 8 adiciones y 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;