[TASK] Streamline assignment of current workspace in DataHandler 25/51325/6
authorOliver Hader <oliver@typo3.org>
Mon, 16 Jan 2017 12:42:36 +0000 (13:42 +0100)
committerSusanne Moog <susanne.moog@typo3.org>
Mon, 16 Jan 2017 16:42:21 +0000 (17:42 +0100)
commit02b97c45927817a866ec12d6be6fd859d8f2e0c8
treeab41ccd4ea3525e8cd85ad96dbb95a7d91b91807
parente817efa512567794e112bf42d7bdca47cf9cae13
[TASK] Streamline assignment of current workspace in DataHandler

The processing of data structures in DataHandler and RelationHandler
are bound to each other. DataHandler allows to be initialized with a
custom BE_USER instance and thus with a custom workspace, different
to the actual value of the real instance of $GLOBALS['BE_USER'].

This patch streamlines the workspace disposal by explicitly
forwarding the provided workspace to RelationHandler and avoids
fetching the current workspace for processing from global values.

The consideration of workspace related fields in RelationHandler was
bound to the current workspace of the global backend user - however,
this backend user constraint has been removed now.

Resolves: #79339
Releases: master
Change-Id: I3973d55c5b9d99ed2e976b86136338fee79d5f6e
Reviewed-on: https://review.typo3.org/51325
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
typo3/sysext/core/Classes/DataHandling/DataHandler.php
typo3/sysext/core/Classes/Database/RelationHandler.php
typo3/sysext/version/Classes/Hook/DataHandlerHook.php