Index: trunk/core/units/custom_fields/custom_fields_config.php =================================================================== diff -u -N -r7855 -r8036 --- trunk/core/units/custom_fields/custom_fields_config.php (.../custom_fields_config.php) (revision 7855) +++ trunk/core/units/custom_fields/custom_fields_config.php (.../custom_fields_config.php) (revision 8036) @@ -74,17 +74,16 @@ 'Fields' => Array( 'CustomFieldId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), - 'Type' => Array('type' => 'int','not_null' => '1','default' => '0'), + 'Type' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), 'FieldName' => Array('required'=>'1', 'type' => 'string','not_null' => 1,'default' => ''), - 'FieldLabel' => Array('type' => 'string', 'required' => 1, 'default' => ''), - 'Heading' => Array('type' => 'string', 'required' => 1, 'default' => ''), - 'Prompt' => Array('type' => 'string','default' => ''), - 'ElementType' => Array('required'=>'1', 'type'=>'string', 'not_null'=>1, 'default'=>'', 'formatter'=>'kOptionsFormatter', 'use_phrases' => 1, 'options'=>Array('' => 'la_EmptyValue', 'text' => 'la_type_text', 'select' => 'la_type_select', 'radio' => 'la_type_radio', 'checkbox' => 'la_type_checkbox', 'password' => 'la_type_password', 'textarea' => 'la_type_textarea', 'label' => 'la_type_label', 'date' => 'la_type_date', 'datetime' => 'la_type_datetime')), - 'ValueList' => Array('type' => 'string','default' => ''), - 'DisplayOrder' => Array('type' => 'int','not_null' => '1','default' => '0'), - 'OnGeneralTab' => Array('type' => 'int','not_null' => '1','default' => '0'), - 'IsSystem' => Array('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array(0 => 'la_No', 1 => 'la_Yes'), 'use_phrases' => 1, 'not_null' => '1', 'default' => '0'), - ), + 'FieldLabel' => Array('type' => 'string', 'required' => 1, 'default' => null), + 'Heading' => Array('type' => 'string', 'required' => 1, 'default' => null), + 'Prompt' => Array('type' => 'string','default' => null), + 'ElementType' => Array('required'=>'1', 'type'=>'string', 'not_null'=>1, 'default'=>'', 'formatter'=>'kOptionsFormatter', 'use_phrases' => 1, 'options'=>Array('' => 'la_EmptyValue', 'text' => 'la_type_text', 'select' => 'la_type_select', /*'multiselect' => 'la_type_multiselect',*/ 'radio' => 'la_type_radio', 'checkbox' => 'la_type_checkbox', 'password' => 'la_type_password', 'textarea' => 'la_type_textarea', 'label' => 'la_type_label', 'date' => 'la_type_date', 'datetime' => 'la_type_datetime')), + 'ValueList' => Array('type' => 'string','default' => null), + 'DisplayOrder' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), + 'OnGeneralTab' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), + 'IsSystem' => Array('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array(0 => 'la_No', 1 => 'la_Yes'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 0), ), 'VirtualFields' => Array( 'Value' => Array('type' => 'string', 'default' => ''), 'OriginalValue' => Array('type' => 'string', 'default' => ''),