Unable to load category item in some cases

4 views
Skip to first unread message

Alexander Obuhovich

unread,
Oct 22, 2012, 4:57:27 AM10/22/12
to Bugs In-Portal
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.



Ready for testing.


--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com
category_item_loading_fix.patch
Reply all
Reply to author
Forward
0 new messages