Skip to content

Commit 0465759

Browse files
bmackohader
authored andcommitted
[TASK] Remove unused property ReferenceIndex->WSOL
The public property in ReferenceIndex->WSOL was removed in 2006 and documented like that, but it has no effect, as it was never evaluated since 14 years. This property is removed, as the recommended way is to use the ->setWorkspaceId() anyway since a few years. Resolves: #90217 Releases: master Change-Id: Ib3b58c6823ec78cb0b51f19b104aa80186f0dfe6 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63047 Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de> Reviewed-by: Oliver Hader <oliver.hader@typo3.org> Tested-by: TYPO3com <noreply@typo3.com> Tested-by: Oliver Hader <oliver.hader@typo3.org>
1 parent a0b9ca1 commit 0465759

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

typo3/sysext/core/Classes/Database/ReferenceIndex.php

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,6 @@ class ReferenceIndex implements LoggerAwareInterface
102102
*/
103103
public $temp_flexRelations = [];
104104

105-
/**
106-
* This variable used to indicate whether referencing should take workspace overlays into account
107-
* It is not used since commit 0c34dac08605ba from 10.04.2006, the bug is investigated in https://forge.typo3.org/issues/65725
108-
*
109-
* @var bool
110-
* @see getRelations()
111-
*/
112-
public $WSOL = false;
113-
114105
/**
115106
* An index of all found references of a single record created in createEntryData() and accumulated in generateRefIndexData()
116107
*
@@ -207,10 +198,6 @@ public function getWorkspaceId()
207198
*/
208199
public function updateRefIndexTable($tableName, $uid, $testOnly = false)
209200
{
210-
// First, secure that the index table is not updated with workspace tainted relations:
211-
$this->WSOL = false;
212-
213-
// Init:
214201
$result = [
215202
'keptNodes' => 0,
216203
'deletedNodes' => 0,
@@ -322,7 +309,7 @@ public function updateRefIndexTable($tableName, $uid, $testOnly = false)
322309

323310
/**
324311
* Returns array of arrays with an index of all references found in record from table/uid
325-
* If the result is used to update the sys_refindex table then ->WSOL must NOT be TRUE (no workspace overlay anywhere!)
312+
* If the result is used to update the sys_refindex table then no workspaces must be applied (no workspace overlay anywhere!)
326313
*
327314
* @param string $tableName Table name from $GLOBALS['TCA']
328315
* @param int $uid Record UID

typo3/sysext/impexp/Classes/Export.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,6 @@ public function export_addRecord($table, $row, $relationLevel = 0)
304304
// Initialize reference index object:
305305
$refIndexObj = GeneralUtility::makeInstance(ReferenceIndex::class);
306306
$refIndexObj->enableRuntimeCache();
307-
// Yes to workspace overlays for exporting....
308-
$refIndexObj->WSOL = true;
309307
$relations = $refIndexObj->getRelations($table, $row);
310308
$relations = $this->fixFileIDsInRelations($relations);
311309
$relations = $this->removeSoftrefsHavingTheSameDatabaseRelation($relations);

0 commit comments

Comments
 (0)