From fcdc907bbc11752282cdf03cbc4d867b2318b4e5 Mon Sep 17 00:00:00 2001 From: Karson <karsonzhang@163.com> Date: Mon, 29 May 2017 22:22:29 +0800 Subject: [PATCH] --- application/admin/command/Crud.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/admin/command/Crud.php b/application/admin/command/Crud.php index 05da39f..619d535 100644 --- a/application/admin/command/Crud.php +++ b/application/admin/command/Crud.php @@ -238,7 +238,7 @@ class Crud extends Command $formAddElement = "{:build_radios('{$fieldName}', [{$itemString}], '{$defaultValue}')}"; $formEditElement = "{:build_radios('{$fieldName}', [{$itemString}], \$row.{$field})}"; } - else if ($inputType == 'textarea' || ($inputType == 'text' && $v['CHARACTER_MAXIMUM_LENGTH'] >= 255)) + else if ($inputType == 'textarea') { $cssClassArr[] = substr($field, -7) == 'content' ? 'summernote' : ''; $attrArr['class'] = implode(' ', $cssClassArr); -- libgit2 0.24.0