Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Imported Fromfrom: http://groups.google.com/group/in-portal-bugs/browse_thread/thread/e41b5980751c4fe0#

OnBeforeItemUpdate event in CatEventHandler class throws fatal error when
trying when trying to access undefined variable as object. This happen because $object
is $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. fatal_error_if_ItemPropertyMapping_not_set.patch

Related Tasks

Jira Legacy
serverSystem Jira
serverId513b375f-8291-3313-9d9f-704c39b1f915
keyINP-365