Index: branches/5.1.x/core/admin_templates/categories/edit_content.tpl =================================================================== diff -u -N -r14241 -r14526 --- branches/5.1.x/core/admin_templates/categories/edit_content.tpl (.../edit_content.tpl) (revision 14241) +++ branches/5.1.x/core/admin_templates/categories/edit_content.tpl (.../edit_content.tpl) (revision 14526) @@ -51,6 +51,9 @@ + + +
@@ -62,8 +65,15 @@ + +
Index: branches/5.1.x/core/units/content/content_config.php =================================================================== diff -u -N -r14241 -r14526 --- branches/5.1.x/core/units/content/content_config.php (.../content_config.php) (revision 14241) +++ branches/5.1.x/core/units/content/content_config.php (.../content_config.php) (revision 14526) @@ -1,6 +1,6 @@ true, 'AutoClone' => true, - 'TitleField' => 'ContentNum', // field, used in bluebar when editing existing item - + 'TitleField' => 'ContentNum', // field, used in bluebar when editing existing item + 'TitlePresets' => Array ( 'default' => Array ( 'new_status_labels' => Array ('content' => '!la_title_Adding_Content!'), @@ -59,7 +59,11 @@ 'PageContentId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), 'ContentNum' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), 'PageId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'Content' => Array ('type' => 'string', 'formatter' => 'kMultiLanguage', 'using_fck' => 1, 'default' => ''), + 'Content' => Array ( + 'type' => 'string', 'min_len' => 0, 'max_len' => 65536, + 'formatter' => 'kMultiLanguage', 'using_fck' => 1, + 'default' => '' + ), ), ); Index: branches/5.1.x/core/kernel/db/dbitem.php =================================================================== diff -u -N -r14408 -r14526 --- branches/5.1.x/core/kernel/db/dbitem.php (.../dbitem.php) (revision 14408) +++ branches/5.1.x/core/kernel/db/dbitem.php (.../dbitem.php) (revision 14526) @@ -1,6 +1,6 @@ FieldValues[$field]); } if (!$res) { - $this->SetError($field, 'bad_type', null, $params['type']); + $this->SetError($field, 'bad_type', null, Array ($params['type'])); } } return $res; @@ -846,7 +846,7 @@ $res = $res && mb_strlen($val) >= $params['min_len']; } if (!$res) { - $error_params = Array (getArrayValue($params, 'min_len'), getArrayValue($params, 'max_len')); + $error_params = Array (getArrayValue($params, 'min_len'), getArrayValue($params, 'max_len'), mb_strlen($val)); $this->SetError($field, 'length_out_of_range', null, $error_params); return $res; } Index: branches/5.1.x/core/install/english.lang =================================================================== diff -u -N -r14487 -r14526 --- branches/5.1.x/core/install/english.lang (.../english.lang) (revision 14487) +++ branches/5.1.x/core/install/english.lang (.../english.lang) (revision 14526) @@ -422,6 +422,7 @@ Q29tbWVudHM= Q29tcGFueQ== Q29uZmlndXJhdGlvbiBIZWFkZXIgTGFiZWw= + Q29udGVudCBCbG9jaw== Q29weSBMYWJlbHMgZnJvbSB0aGlzIExhbmd1YWdl Q291bnRyeQ== Q3JlYXRlZCBCeQ==