[CLEANUP] Simplify updating of timestamp in writeForeignField 76/50976/3
authorThomas Hohn <tho@systime.dk>
Thu, 15 Dec 2016 10:45:22 +0000 (11:45 +0100)
committerAndreas Fernandez <typo3@scripting-base.de>
Sun, 29 Jan 2017 11:15:55 +0000 (12:15 +0100)
commita7e2c7e7e7d53bc941943880843b137e5b2f8f07
tree7b53f61b1946b4d18d2f5bfdef3a6deea3de6b31
parent77cd9436c81451c55e2696666f385656cf1e861b
[CLEANUP] Simplify updating of timestamp in writeForeignField

There is no need to check the record we are updating -
since we update it anyway, update timestamp too and
save both a call to getRecord and a loop through fields,
casting and checking each field value comparing to DB.

Change-Id: Ic807030c5cea83d36e543ed0f75cf980c3872d1e
Releases: master, 7.6
Resolves: #79004
Reviewed-on: https://review.typo3.org/50976
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Philipp Gampe <philipp.gampe@typo3.org>
Tested-by: Philipp Gampe <philipp.gampe@typo3.org>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/core/Classes/Database/RelationHandler.php