[BUGFIX] process_datamap doesn't handle existing versions by itself
authorBart Dubelaar <bartdubelaar@gmail.com>
Wed, 25 Jan 2012 13:14:28 +0000 (14:14 +0100)
committerSusanne Moog <typo3@susannemoog.de>
Sun, 11 Mar 2012 14:22:45 +0000 (15:22 +0100)
commita8f5a1700f65e7c56ce80cebee57a23fd79577bc
tree3511eb6aff706961f9bceac4dc46ff630b3fbd1a
parent72d48effe73f82e376c8fbce1dca84acedc1c570
[BUGFIX] process_datamap doesn't handle existing versions by itself

The process_datamap function in TCEmain expects to receive the ids of the
existing offline counterparts of a record whenever operations are performed in a
workspace. This implies that this has taken into account in all places where
the process_datamap function is called. In some cases this is not properly done, see
bug #32780 and related. The process_cmdmap function does handle this transparently,
so it is desirable to have the same behavior in process_datamap.

This fix implements the translation to versioned records for operations on a single record.
Operations with child records (IRRE) still require the versioned id's, no bugs
 are known that would require this behavior to be changed.

Change-Id: I26618f6b2d4f694a7b5b9b14e1c3d0c343a900ce
Fixes: #32780
Releases: 4.5
Reviewed-on: http://review.typo3.org/8688
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
Reviewed-by: Susanne Moog
Tested-by: Susanne Moog
t3lib/class.t3lib_tcemain.php