In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
1058 [In-Portal CMS] Data Management bug report always 2011-05-27 04:55 2011-09-19 16:08
alex  
alex  
normal  
closed 5.1.2  
fixed  
 
none 5.1.3-RC1  
https://groups.google.com/d/topic/in-portal-bugs/PBlHjq6Qgfc/discussion
Fixes category not passed into OnBeforeItemCreate method of Category Items
0
0001058: Category not available during Link/Product (or any category item) creation
There is a "Parent Section" (virtual field: CategoryId) on each category item adding/editing page.

This field allows to place category item into a specific category. This functionality works like a charm, but problem happens, when you need to set another field's value based on the category, where category item is added.

Usually method OnBeforeItemCreate is used for this kind of operation. Strange, but this CategoryId field has no value in this method, however it's clearly is specified on category item creation screen.
patch category_item_onbeforeitemcreate_missing_category_id.patch (937) 2011-05-27 04:55
http://tracker.in-portal.org/file_download.php?file_id=1021&type=bug
Issue History
2011-09-19 16:08 alex Note Added: 0003815
2011-09-19 16:08 alex Status resolved => closed
2011-07-08 05:04 alex Note Added: 0003603
2011-07-08 05:04 alex Status reviewed and tested => resolved
2011-07-08 05:04 alex Fixed in Version => 5.1.3-RC1
2011-07-08 05:04 alex Resolution open => fixed
2011-07-08 05:04 alex Assigned To !COMMUNITY => alex
2011-07-08 05:04 alex Changeset attached 5.1.x r14439
2011-07-07 10:09 Dmitry Note Added: 0003596
2011-07-07 10:09 Dmitry Status needs testing => reviewed and tested
2011-07-07 10:09 Dmitry Target Version Icebox => 5.1.3
2011-05-27 04:57 alex Assigned To => !COMMUNITY
2011-05-27 04:57 alex Developer => alex
2011-05-27 04:57 alex Status active => needs testing
2011-05-27 04:56 alex Reference => https://groups.google.com/d/topic/in-portal-bugs/PBlHjq6Qgfc/discussion
2011-05-27 04:55 alex New Issue
2011-05-27 04:55 alex File Added: category_item_onbeforeitemcreate_missing_category_id.patch
2011-05-27 04:55 alex Change Log Message => Fixes category not passed into OnBeforeItemCreate method of Category Items

Notes
(0003596)
Dmitry   
2011-07-07 10:09   
Patch has been reviewed and tested. Moved to 5.1.3 release to get it out the way and make Merge to 5.2.0 easier.
(0003603)
alex   
2011-07-08 05:04   
Fix committed to 5.1.x branch. Commit Message:

Fixes 0001058: Category not available during Link/Product (or any category item) creation
(0003815)
alex   
2011-09-19 16:08   
Closing, since 5.1.3 release has been released.