Index: branches/5.1.x/core/units/category_items/category_items_config.php =================================================================== diff -u -N -r12127 -r12657 --- branches/5.1.x/core/units/category_items/category_items_config.php (.../category_items_config.php) (revision 12127) +++ branches/5.1.x/core/units/category_items/category_items_config.php (.../category_items_config.php) (revision 12657) @@ -1,6 +1,6 @@ 'ci', 'ItemClass' => Array('class'=>'CategoryItems_DBItem','file'=>'category_items_dbitem.php','build_event'=>'OnItemBuild'), 'ListClass' => Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'), @@ -33,7 +35,7 @@ 3 => 'event', ), 'IDField' => 'CategoryId', // in this case idfield doesn't exit in destination table - 'StatusField' => Array('CategoryStatus'), // field, that is affected by Approve/Decline events + 'StatusField' => Array('PrimaryCat'), // field, that is affected by Approve/Decline events 'TableName' => TABLE_PREFIX.'CategoryItems', 'ParentTableKey'=> 'ResourceId', @@ -67,22 +69,24 @@ 'ItemPrefix' => Array('type' => 'string','not_null'=>1,'default'=>''), 'Filename' => Array('type' => 'string','not_null'=>1,'default'=>''), ), - + 'VirtualFields' => Array ( 'CategoryName' => Array(), 'DummyId' => Array(), 'CategoryStatus' => Array(), ), - 'Grids' => Array( - 'Default' => Array( - 'Icons' => Array('default' => 'icon16_cat.gif', 0 => 'icon16_cat_disabled.gif', 1 => 'icon16_cat.gif', 2 => 'icon16_cat_pending.gif'), // icons for each StatusField values, if no matches or no statusfield selected, then "default" icon is used - 'Fields' => Array( - 'CategoryName' => Array( 'title'=>'la_col_Category', 'data_block' => 'grid_checkbox_category_td'), - ), + 'Grids' => Array ( + 'Default' => Array ( + 'Icons' => Array ( + 'default' => 'icon16_item.png', + 0 => 'icon16_item.png', + 1 => 'icon16_primary.png', + ), - ), - ), - ); - -?> \ No newline at end of file + 'Fields' => Array ( + 'CategoryName' => Array( 'title'=>'la_col_Category', 'data_block' => 'grid_checkbox_category_td'), + ), + ), + ), + ); \ No newline at end of file