Index: branches/5.2.x/units/orders/orders_config.php =================================================================== diff -u -r16720 -r16835 --- branches/5.2.x/units/orders/orders_config.php (.../orders_config.php) (revision 16720) +++ branches/5.2.x/units/orders/orders_config.php (.../orders_config.php) (revision 16835) @@ -1,6 +1,6 @@ Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'required' => 1, 'default' => '#NOW#'), 'PortalUserId' =>Array ('type' => 'int', 'formatter' => 'kLEFTFormatter', 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), 'options' =>Array (USER_ROOT => 'root', USER_GUEST => 'Guest'), 'left_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'Users WHERE %s', 'left_key_field' => 'PortalUserId', 'left_title_field' => USER_TITLE_FIELD, 'required' =>1, 'not_null' =>1, 'default' =>-1), - 'OrderIP' => Array ('type' => 'string', 'not_null' => 1, 'default' => '', 'filter_type' => 'like'), + 'OrderIP' => Array ('type' => 'string', 'max_len' => 50, 'not_null' => 1, 'default' => '', 'filter_type' => 'like'), 'UserComment' => Array ('type' => 'string', 'default' => NULL), 'AdminComment' => Array ('type' => 'string', 'default' => NULL), 'BillingTo' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''),