[BUGFIX] Ensure cache tags are strings in workspaces 35/54535/2
authorSusanne Moog <susanne.moog@typo3.com>
Thu, 2 Nov 2017 15:24:33 +0000 (16:24 +0100)
committerBenni Mack <benni@typo3.org>
Thu, 2 Nov 2017 16:08:26 +0000 (17:08 +0100)
On SQLServer you cannot insert integers in varchar
columns therefore the workspaces module ajax requests
are failing and you cannot use the module.

Cast the workspaceId to a string before using it as a
cache tag.

Change-Id: I0827dd6dddd9203fb7846934a034b826a515cdf3
Resolves: #82901
Releases: master
Reviewed-on: https://review.typo3.org/54535
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>

index 7f3e3bf..a3d97a9 100644 (file)
@@ -299,7 +299,7 @@ class GridDataService implements LoggerAwareInterface
     protected function setDataArrayIntoCache(array $versions, $filterTxt)
         $hash = $this->calculateHash($versions, $filterTxt);
-        $this->workspacesCache->set($hash, $this->dataArray, [$this->currentWorkspace, 'user_' . $GLOBALS['BE_USER']->user['uid']]);
+        $this->workspacesCache->set($hash, $this->dataArray, [(string)$this->currentWorkspace, 'user_' . $GLOBALS['BE_USER']->user['uid']]);