Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-1172

Change category item loading to avoid asking for primary category

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.1.0
    • Fix Version/s: 5.2.1-B1
    • Component/s: Database
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: