In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
1418 [In-Portal CMS] Database bug report always 2012-10-22 03:57 2012-10-22 03:59
alex  
alex  
normal  
resolved 5.1.0  
fixed  
 
none 5.2.1-B1  
https://groups.google.com/d/topic/in-portal-bugs/ZWaVq_BVXsc/discussion
Fixes inability to load category item before it's been added to a category
1
0001418: Unable to load category item in some cases
In-Portal 2 major kinds of items:

* regular items
* category items

Regular item is an item, that are used a lot across In-Portal, like "user", "affiliate", "manufacturer", etc.
Category item is regular item with extra features for handling it's location inside multiple categories.

Category item can be loaded from database on demand using this code: $object->Load($link_id);
However this implies, that this item has a primary category bound to it. When it doesn't whole loading fails.

This creates a problems when developer trying to act on category item before it has been added to at least one category.
patch category_item_loading_fix.patch (1,314) 2012-10-22 03:57
http://tracker.in-portal.org/file_download.php?file_id=1839&type=bug
Issue History
2012-10-22 03:59 alex Changeset attached 5.2.x r15594
2012-10-22 03:59 alex Note Added: 0005242
2012-10-22 03:59 alex Status reviewed and tested => resolved
2012-10-22 03:59 alex Fixed in Version => 5.2.1-B1
2012-10-22 03:59 alex Resolution open => fixed
2012-10-22 03:59 alex Assigned To !COMMUNITY => alex
2012-10-22 03:58 alex Note Added: 0005241
2012-10-22 03:58 alex Status needs testing => reviewed and tested
2012-10-22 03:58 alex Assigned To => !COMMUNITY
2012-10-22 03:58 alex Developer => alex
2012-10-22 03:58 alex Status active => needs testing
2012-10-22 03:58 alex Reference => https://groups.google.com/d/topic/in-portal-bugs/ZWaVq_BVXsc/discussion
2012-10-22 03:57 alex New Issue
2012-10-22 03:57 alex File Added: category_item_loading_fix.patch
2012-10-22 03:57 alex Change Log Message => Fixes inability to load category item before it's been added to a category
2012-10-22 03:57 alex Estimate Points => 1

Notes
(0005241)
alex   
2012-10-22 03:58   
Will test all together later.
(0005242)
alex   
2012-10-22 03:59   
Fix committed to 5.2.x branch. Commit Message:

Fixes 0001418: Unable to load category item in some cases