NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use
trunk.foswiki.org to view this page for some minimal testing.
Use
Item9693 for docu changes for 1.2 and 2.0.
Item11461: beforeSaveHandler is passed an uncommitted meta object
| Priority: |
CurrentState: |
AppliesTo: |
Component: |
WaitingFor: |
| Urgent |
Closed |
Engine |
|
|
the $meta obj passed to beforeSaveHandler soes not (yet) have a committed rev assigned to it. if that meta obj is used for an access controls check, it will reload the obj with the latest topic version - blowing away changes made in the obj
the solution is to ensure the _loadedRev is set before passing the obj down
--
CrawfordCurrie - 20 Jan 2012
Fix checked into trunk and release01x01 with unit tests.
--
CrawfordCurrie - 23 Jan 2012