|
@@ -76,7 +76,7 @@ discard block |
|
|
block discarded – undo |
|
76
|
76
|
$q->select('uid') |
|
77
|
77
|
->from($tableName); |
|
78
|
78
|
|
|
79
|
|
- $worksSpaceSupport = $GLOBALS['TCA'][$tableName]['ctrl']['versioningWS'] ? (bool) $GLOBALS['TCA'][$tableName]['ctrl']['versioningWS'] : false; |
|
|
79
|
+ $worksSpaceSupport = $GLOBALS['TCA'][$tableName]['ctrl']['versioningWS'] ? (bool)$GLOBALS['TCA'][$tableName]['ctrl']['versioningWS'] : false; |
|
80
|
80
|
if ($worksSpaceSupport) { |
|
81
|
81
|
$q->addOrderBy('t3ver_wsid', 'ASC'); |
|
82
|
82
|
} |
|
@@ -85,7 +85,7 @@ discard block |
|
|
block discarded – undo |
|
85
|
85
|
if ($transPointer) { |
|
86
|
86
|
// Note: In localized tables, it is important, that the "default language records" are indexed first, so the |
|
87
|
87
|
// overlays can connect with l10n_parent to the right default record. |
|
88
|
|
- $q->addOrderBy((string) $transPointer, 'ASC'); |
|
|
88
|
+ $q->addOrderBy((string)$transPointer, 'ASC'); |
|
89
|
89
|
} |
|
90
|
90
|
$rows = $q->execute()->fetchAll(); |
|
91
|
91
|
foreach ($rows as $row) { |
|
@@ -176,8 +176,8 @@ discard block |
|
|
block discarded – undo |
|
176
|
176
|
$neededItems = $this->preparationService->prepareIndex($configurationKey, $tableName, $uid); |
|
177
|
177
|
|
|
178
|
178
|
$rawRecord = BackendUtility::getRecord($tableName, $uid); |
|
179
|
|
- $workspace = isset($rawRecord['t3ver_wsid']) ? (int) $rawRecord['t3ver_wsid'] : 0; |
|
180
|
|
- $origId = isset($rawRecord['t3ver_oid']) ? (int) $rawRecord['t3ver_oid'] : 0; |
|
|
179
|
+ $workspace = isset($rawRecord['t3ver_wsid']) ? (int)$rawRecord['t3ver_wsid'] : 0; |
|
|
180
|
+ $origId = isset($rawRecord['t3ver_oid']) ? (int)$rawRecord['t3ver_oid'] : 0; |
|
181
|
181
|
|
|
182
|
182
|
if ($workspace && $origId) { |
|
183
|
183
|
|
|
@@ -285,7 +285,7 @@ discard block |
|
|
block discarded – undo |
|
285
|
285
|
{ |
|
286
|
286
|
$db = HelperUtility::getDatabaseConnection(self::TABLE_NAME); |
|
287
|
287
|
foreach ($neededItems as $key => $item) { |
|
288
|
|
- if($workspace) { |
|
|
288
|
+ if ($workspace) { |
|
289
|
289
|
// @todo remove placeholders |
|
290
|
290
|
$livePlaceholder = $item; |
|
291
|
291
|
$livePlaceholder['t3ver_wsid'] = 0; |