[TASK] Provide information about import action in TCEmain to hooks 45/22645/2
authorStefan Galinski <stefan.galinski@gmail.com>
Tue, 27 Nov 2012 01:31:50 +0000 (02:31 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 30 Jul 2013 23:14:52 +0000 (01:14 +0200)
commit632ea1458a40c4aab7f1158644eb4ea2a4946676
tree8c4a8812517a4de876b52d52188bbeb5a9f8a121
parent4f21ea2451ea9bd8d560f8dd449e329bfcfee2d9
[TASK] Provide information about import action in TCEmain to hooks

While importing T3D files the TCEmain currently fires the required
processing on records just as if the editor is generating the records. If
extensions hook into TCEmain, there is no way to differenciate this
situation from the regular editing mode - which might provide unexpected
results, i.e. wrong IRRE relations.

Solution is to provide a boolean to indicate that TCEmain has been called
during an import action which extensions could use to recognize this
situation.

Change-Id: I4fe429fb88f8ec24a7fda885f38ddfbdb4a642f5
Resolves: #36031
Releases: 4.5, 4.7, 6.0, 6.1, 6.2
Reviewed-on: https://review.typo3.org/22645
Reviewed-by: Jo Hasenau
Tested-by: Jo Hasenau
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
t3lib/class.t3lib_tcemain.php
typo3/sysext/impexp/class.tx_impexp.php