[BUGFIX] Avoid version overlay if EXT:version is not loaded 52/50952/5
authorClaus Due <claus@namelesscoder.net>
Tue, 13 Dec 2016 16:31:36 +0000 (17:31 +0100)
committerAndreas Fernandez <typo3@scripting-base.de>
Fri, 27 Jan 2017 16:13:29 +0000 (17:13 +0100)
commit06a504238fff012685531f7315df121879a847be
tree5975a5486d5c39a94b1bc5ac733d20e1a656455a
parentf37a28db9020004052971fd0a0b97262086886b3
[BUGFIX] Avoid version overlay if EXT:version is not loaded

PlainDataResolver will do semi-expensive operations for
workspaces-enabled tables even if EXT:version (and
therefore EXT:workspaces) is not loaded.

Doing a cheap check can prevent calling two such
operations and saves SQL queries and memory.

Change-Id: I6062538c3c158352b7be5748d407bbe2aad3a641
Resolves: #78982
Releases: master
Reviewed-on: https://review.typo3.org/50952
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/core/Classes/DataHandling/PlainDataResolver.php