In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
553 [In-Portal CMS] Data Management bug report always 2010-01-25 10:36 2010-05-11 03:00
Dmitry  
Dmitry  
normal  
closed 5.0.2  
fixed  
 
none 5.0.3-B1  
http://groups.google.com/group/in-portal-bugs/browse_thread/thread/dcbe05fdde396ae6
0
0000553: Empty CategoryId in Item object after it's Created
Topic (or category item) url leads to home page in TOPIC.ADD email event in
case, when topic creation confirmation template is not used. This happens
because just after topic (any other category item) is created it's
CategoryId virtual field is not filled with current category (where topic
was added to), but this CategoryId field is used later to build link to this
topic in TOPIC.ADD email event.
To fix this you should set CategoryId field to $category_id (when passed) in
kCatDBItem::assignPrimaryCategory() method (only when $category_id is not
empty).
patch Empty_CategoryId_In_Item_Object_After_ Its_Created-Dmitry-20100126-v1.patch (735) 2010-01-25 10:36
http://tracker.in-portal.org/file_download.php?file_id=242&type=bug
patch Empty_CategoryId_In_Item_Object_After_ Its_Created-Dmitry-20100126-v3.patch (713) 2010-03-08 01:39
http://tracker.in-portal.org/file_download.php?file_id=328&type=bug
Issue History
2010-05-11 03:00 alex Note Added: 0002146
2010-05-11 03:00 alex Status resolved => closed
2010-03-15 16:41 Dmitry Note Added: 0001619
2010-03-15 16:41 Dmitry Status reviewed and tested => resolved
2010-03-15 16:41 Dmitry Fixed in Version => 5.0.3-B1
2010-03-15 16:41 Dmitry Resolution open => fixed
2010-03-15 16:41 Dmitry Assigned To !COMMUNITY => Dmitry
2010-03-15 16:41 Dmitry Changeset attached 5.0.x r13228
2010-03-08 01:41 alex Note Added: 0001524
2010-03-08 01:41 alex Status needs testing => reviewed and tested
2010-03-08 01:40 alex Note Added: 0001523
2010-03-08 01:39 alex File Added: Empty_CategoryId_In_Item_Object_After_ Its_Created-Dmitry-20100126-v3.patch
2010-02-26 18:49 Dmitry Developer => Dmitry
2010-01-25 10:37 Dmitry Note Added: 0001434
2010-01-25 10:37 Dmitry Assigned To => !COMMUNITY
2010-01-25 10:37 Dmitry Status active => needs testing
2010-01-25 10:36 Dmitry New Issue
2010-01-25 10:36 Dmitry File Added: Empty_CategoryId_In_Item_Object_After_ Its_Created-Dmitry-20100126-v1.patch
2010-01-25 10:36 Dmitry Reference => http://groups.google.com/group/in-portal-bugs/browse_thread/thread/dcbe05fdde396ae6

Notes
(0001434)
Dmitry   
2010-01-25 10:37   
Please test and report back.
(0001523)
alex   
2010-03-08 01:40   
Patch "Empty_CategoryId_In_Item_Object_After_ Its_Created-Dmitry-20100126-v3.patch" is latest version from discussion.
(0001524)
alex   
2010-03-08 01:41   
Ok.
(0001619)
Dmitry   
2010-03-15 16:41   
Fix committed to 5.0.x branch. Commit Message:

Fixes 0000553: Empty CategoryId in Item object after it's Created
(0002146)
alex   
2010-05-11 03:00   
Closing all tasks from released versions.