Index: branches/5.1.x/units/coupon_items/coupon_items_config.php =================================================================== diff -u -N -r14257 -r14534 --- branches/5.1.x/units/coupon_items/coupon_items_config.php (.../coupon_items_config.php) (revision 14257) +++ branches/5.1.x/units/coupon_items/coupon_items_config.php (.../coupon_items_config.php) (revision 14534) @@ -1,6 +1,6 @@ 'OnDeleteCouponItem', ), ), - + 'QueryString' => Array( 1 => 'id', 2 => 'Page', @@ -41,22 +41,22 @@ ), 'IDField' => 'CouponItemId', - 'StatusField' => Array('Status'), + 'StatusField' => Array('Status'), 'TableName' => TABLE_PREFIX . 'ProductsCouponItems', 'ForeignKey' => 'CouponId', 'ParentTableKey' => 'CouponId', 'ParentPrefix' => 'coup', 'AutoDelete' => true, 'AutoClone' => true, - + 'ListSQLs' => Array( '' => ' SELECT %1$s.* %2$s FROM %1$s LEFT JOIN ' . TABLE_PREFIX . 'Products p ON %1$s.ItemResourceId = p.ResourceId LEFT JOIN ' . TABLE_PREFIX . 'Category c ON %1$s.ItemResourceId = c.ResourceId', ), // key - special, value - list select sql - + 'ItemSQLs' => Array( '' => 'SELECT * FROM %s', ), @@ -65,13 +65,13 @@ Array( 'prefix' => 'd', 'key' => 'DiscountId', 'ForeignKey' => 'DiscountId'), ),*/ - + 'ListSortings' => Array( '' => Array( 'Sorting' => Array('ItemName' => 'asc'), ), ), - + 'CalculatedFields' => Array( '' => Array( 'ProductId' => 'p.ProductId', @@ -120,7 +120,7 @@ 'type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Active', 2 => 'la_Pending', 0 => 'la_Disabled'), 'use_phrases' => 1, - 'default' => 2, + 'default' => 2, ), 'CategoryId' => Array ('type' => 'int', 'default' => 0), ), @@ -140,11 +140,11 @@ 2 => 'icon16_product_pending.png', ), 'Fields' => Array( - 'ProductId' => Array( 'title'=>'la_col_Id', 'data_block' => 'grid_item_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), + 'ProductId' => Array( 'title'=>'column:la_fld_Id', 'data_block' => 'grid_item_td', 'filter_block' => 'grid_range_filter', 'width' => 60, ), 'ItemName' => Array( 'title'=>'la_col_ItemName', 'filter_block' => 'grid_like_filter', 'width' => 250, ), 'ItemType' => Array( 'title'=>'la_col_CouponItemType', 'filter_block' => 'grid_options_filter', 'width' => 150, ), ), ), ), - + ); \ No newline at end of file