[BUGFIX] Fix wrong condition in method checkValueForText 65/51465/3
authorDominique Kreemers <dominique.kreemers@icloud.com>
Mon, 30 Jan 2017 10:48:41 +0000 (11:48 +0100)
committerMarkus Klein <markus.klein@typo3.org>
Mon, 30 Jan 2017 12:26:32 +0000 (13:26 +0100)
This makes "eval" processing working again for text fields.

Resolves: #79545
Related: #79341
Releases: master
Change-Id: Icda2f32a41a95afa33c87be9ed60c5b5ed47f275
Reviewed-on: https://review.typo3.org/51465
Reviewed-by: Marcus Schwemer <ms@schwemer.de>
Tested-by: Marcus Schwemer <ms@schwemer.de>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/core/Classes/DataHandling/DataHandler.php

index e020bfb..d67b74a 100644 (file)
@@ -1694,7 +1694,7 @@ class DataHandler
      */
     protected function checkValueForText($value, $tcaFieldConf, $table, $id, $realPid, $field)
     {
-        if (isset($tcaFieldConf['eval']) && !$tcaFieldConf['eval'] === '') {
+        if (isset($tcaFieldConf['eval']) && $tcaFieldConf['eval'] !== '') {
             $cacheId = $this->getFieldEvalCacheIdentifier($tcaFieldConf['eval']);
             if ($this->runtimeCache->has($cacheId)) {
                 $evalCodesArray = $this->runtimeCache->get($cacheId);