Index: branches/5.3.x/core/units/category_items/category_items_config.php =================================================================== diff -u -N -r15659 -r15986 --- branches/5.3.x/core/units/category_items/category_items_config.php (.../category_items_config.php) (revision 15659) +++ branches/5.3.x/core/units/category_items/category_items_config.php (.../category_items_config.php) (revision 15986) @@ -1,6 +1,6 @@ 'ci', - 'ItemClass' => Array ('class' => 'CategoryItems_DBItem', 'file' => 'category_items_dbitem.php', 'build_event' => 'OnItemBuild'), + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), 'EventHandlerClass' => Array ('class' => 'CategoryItemsEventHander', 'file' => 'category_items_event_handler.php', 'build_event' => 'OnBuild'), 'TagProcessorClass' => Array ('class' => 'CategoryItemsTagProcessor', 'file' => 'category_items_tag_processor.php', 'build_event' => 'OnBuild'), @@ -29,7 +29,7 @@ 4 => 'event', ), - 'IDField' => 'CategoryId', // in this case idfield doesn't exit in destination table + 'IDField' => 'Id', 'StatusField' => Array ('PrimaryCat'), // field, that is affected by Approve/Decline events 'TableName' => TABLE_PREFIX.'CategoryItems', @@ -41,7 +41,6 @@ 'CalculatedFields' => Array ( '' => Array ( - 'DummyId' => 'IF(ISNULL(c.CategoryId),0,c.CategoryId)', 'CategoryStatus'=> 'c.Status', ) ), @@ -58,7 +57,7 @@ ), 'Fields' => Array ( - 'DummyId' => Array (), + 'Id' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), 'CategoryId' => Array ('type' => 'int', 'not_null'=>1,'default'=>0), 'ItemResourceId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), 'PrimaryCat' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), @@ -68,7 +67,6 @@ 'VirtualFields' => Array ( 'CategoryName' => Array ('type' => 'string', 'default' => ''), - 'DummyId' => Array ('type' => 'int', 'default' => 0), 'CategoryStatus' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Active', 2 => 'la_Pending', 0 => 'la_Disabled' ), 'use_phrases' => 1, 'default' => 1), ),