[BUGFIX] TCA field using MM table is incorrectly duplicates relations 78/51978/4
authorGeorg Ringer <georg.ringer@gmail.com>
Tue, 7 Mar 2017 18:07:31 +0000 (19:07 +0100)
committerOliver Hader <oliver.hader@typo3.org>
Mon, 20 Mar 2017 09:45:15 +0000 (10:45 +0100)
commita0e968c5889ecd7a0706cc44e31144caa6560e05
tree500ee7a9fe3e04a0356ae5c21de36906a381c308
parent77465a6d4554e5f9418a2b50aa12bfacefaec261
[BUGFIX] TCA field using MM table is incorrectly duplicates relations

The previous change disabled the lookup on the parent UID which resulted
in getting all possible relations due to the missing constraint. Now the
behavior is mitigated by resetting non-numeric values to zero which will
lead to an empty result set - like implicitly for MySQL before.

Resolved: #80172
Releases: master
Change-Id: If6c8d2e3b2c2b2ddf15727196f7da294fe2ada06
Reviewed-on: https://review.typo3.org/51978
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Thomas Hohn <thomas@hohn.dk>
Tested-by: Thomas Hohn <thomas@hohn.dk>
Reviewed-by: Marcus Schwemer <ms@schwemer.de>
Tested-by: Marcus Schwemer <ms@schwemer.de>
Reviewed-by: Markus Sommer <markussom@posteo.de>
Tested-by: Markus Sommer <markussom@posteo.de>
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
typo3/sysext/core/Classes/Database/RelationHandler.php