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

CatEventHandler fatal error when ItemPropertyMappings not defined

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0.1
    • Fix Version/s: 5.0.2-B1
    • Component/s: Admin Interfaces
    • Labels:
      None

      Description

      OnBeforeItemUpdate event in CatEventHandler class throws fatal error when
      trying to access undefined variable as object. This happen because $object
      is defined inside "if" construction, but after that is also used outside.
      Nobody never tried making custom Category Item without ItemPropertyMappings
      defined in config (this is "if" condition) until now, so we never have seen
      this issue.

      Attached patch fixes the bug.

      Reported by Sergey G.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                BaSSiST Sergejs Gribs
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: