In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
440 [In-Portal CMS] Admin Interfaces bug report always 2009-12-06 23:04 2010-01-11 22:01
BaSSiST  
alex  
normal  
closed 5.0.1  
fixed  
 
none 5.0.2-B1  
Google Groups http://groups.google.com/group/in-portal-bugs/browse_thread/thread/e41b5980751c4fe0
0
0000440: CatEventHandler fatal error when ItemPropertyMappings not defined
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.
patch fatal_error_if_ItemPropertyMapping_not_set.patch (804) 2009-12-06 23:04
http://tracker.in-portal.org/file_download.php?file_id=155&type=bug
Issue History
2010-01-11 22:01 Dmitry Note Added: 0001314
2010-01-11 22:01 Dmitry Status resolved => closed
2009-12-20 06:22 alex Changeset attached 5.0.x r12952
2009-12-20 06:22 alex Note Added: 0001181
2009-12-20 06:22 alex Status reviewed and tested => resolved
2009-12-20 06:22 alex Fixed in Version => 5.0.2-B1
2009-12-20 06:22 alex Resolution open => fixed
2009-12-20 06:22 alex Assigned To !COMMUNITY => alex
2009-12-20 02:08 Dmitry Note Added: 0001179
2009-12-20 02:08 Dmitry Status needs testing => reviewed and tested
2009-12-11 00:12 Dmitry Reporter Dmitry => BaSSiST
2009-12-06 23:04 Dmitry Status needs work => needs testing
2009-12-06 23:04 Dmitry New Issue
2009-12-06 23:04 Dmitry Status active => needs work
2009-12-06 23:04 Dmitry Assigned To => !COMMUNITY
2009-12-06 23:04 Dmitry File Added: fatal_error_if_ItemPropertyMapping_not_set.patch
2009-12-06 23:04 Dmitry Reference => Google Groups http://groups.google.com/group/in-portal-bugs/browse_thread/thread/e41b5980751c4fe0

Notes
(0001179)
Dmitry   
2009-12-20 02:08   
Code tested ok.
(0001181)
alex   
2009-12-20 06:22   
Fix committed to 5.0.x branch. Commit Message:

Fixes 0000440: CatEventHandler fatal error when ItemPropertyMappings not defined.
(0001314)
Dmitry   
2010-01-11 22:01   
Closing completed tasks.