[BUGFIX] l10n_diffsource field can handle empty string and null value 49/57149/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Thu, 7 Jun 2018 09:50:54 +0000 (11:50 +0200)
committerAndreas Fernandez <a.fernandez@scripting-base.de>
Fri, 8 Jun 2018 11:30:46 +0000 (13:30 +0200)
commitb883baac29f83d9a39e77c4ce5ec58c06538de89
tree01ac4ad7a4d79d2b7ff044322953f398495481e9
parent0655102189d600d8f74541349057f394addc9355
[BUGFIX] l10n_diffsource field can handle empty string and null value

Depending on DB platform, empty LOB fields can be returned
as NULL value (sqlite) or as empty string (mysql, our postgres
setup, mssql).

The patch adapts a minor detail in DataHandler since isset(null)
is false, but isset('') is true, it uses an array_key_exists()
instead for diff check on transOrigDiffSourceField / l10n_diffsource
field to align these two possible different db return values.

Resolves: #85186
Releases: master
Change-Id: I56c87fa519a0c787515eff403d48ac84e513300d
Reviewed-on: https://review.typo3.org/57149
Reviewed-by: Daniel Siepmann <daniel.siepmann@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
Tested-by: Daniel Siepmann <daniel.siepmann@typo3.org>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
typo3/sysext/core/Classes/DataHandling/DataHandler.php