Index: branches/5.1.x/units/products/products_config.php =================================================================== diff -u -N -r14137 -r14158 --- branches/5.1.x/units/products/products_config.php (.../products_config.php) (revision 14137) +++ branches/5.1.x/units/products/products_config.php (.../products_config.php) (revision 14158) @@ -1,6 +1,6 @@ Array ('type' => 'double', 'formatter' => 'kFormatter', 'format' => '%d', 'not_null' => 1, 'default' => 0), 'CreatedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), 'Expire' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' =>null), - 'Type' => Array ('type' => 'int', 'not_null' => 1, 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' =>Array (1=> 'la_product_tangible', 2=> 'la_product_subscription', 4=> 'la_product_downloadable', 3=> 'la_product_service'/*, 6=> 'la_gift_certificate', 5=> 'la_product_package'*/), 'not_null' => 1, 'default' => 1 ), + 'Type' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, + 'options' => Array ( + PRODUCT_TYPE_TANGIBLE => 'la_product_tangible', + PRODUCT_TYPE_SUBSCRIPTION => 'la_product_subscription', + PRODUCT_TYPE_SERVICE => 'la_product_service', + PRODUCT_TYPE_DOWNLOADABLE => 'la_product_downloadable', + /* PRODUCT_TYPE_PACKAGE => 'la_product_package', */ + ), + 'not_null' => 1, 'default' => 1, + ), 'Modified' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), 'ModifiedById' => Array ('type' => 'int', 'default' => NULL), 'CreatedById' => Array (