Versions Compared

Key

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

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

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.

fatal_error_if_ItemPropertyMapping_not_set.patch