[TYPO3-core] RFC: Bug 4446 TCEmain: Hook processDatamap_afterDatabaseOperations and insert operations
Ingmar Schlecht
ingmar at typo3.org
Wed Feb 7 14:23:42 CET 2007
This is a SVN patch request.
Type: Bugfix
by Ingo Schmitt
Description:
When the hook processDatamap_afterDatabaseOperations is used after an
INSERT operation not the new insert_id is given to the hook as $id but
the temporary NEW...... ID.
Solution:
Sinve the function insertDB already returns the new insert_id, the new
ID should be stored in $id, to have it availiabe in the hook.
Remark:
There is the slight probability of breaking backwards compatibility as
people could have translated the NEW... id themselves in their hook
functions using the $this->substNEWwithIDs array. However, it makes much
more sense to directly pass the real insert id to the hook.
Branches: Trunk only.
Bugtracker reference:
http://bugs.typo3.org/view.php?id=4446
cheers
Ingmar
More information about the TYPO3-team-core
mailing list