|
@@ 6861-6866 (lines=6) @@
|
| 6858 |
|
$necessaryFields = ['uid', 'pid']; |
| 6859 |
|
$wsFields = ['t3ver_state']; |
| 6860 |
|
if (isset($GLOBALS['TCA'][$table]) && !preg_match(($matchStart . '\\*' . $matchEnd), $selectPart) && !preg_match('/(count|max|min|avg|sum)\\([^\\)]+\\)/i', $selectPart)) { |
| 6861 |
|
foreach ($necessaryFields as $field) { |
| 6862 |
|
$match = $matchStart . $field . $matchEnd; |
| 6863 |
|
if (!preg_match($match, $selectPart)) { |
| 6864 |
|
$selectPart .= ', ' . $connection->quoteIdentifier($table . '.' . $field) . ' AS ' . $connection->quoteIdentifier($field); |
| 6865 |
|
} |
| 6866 |
|
} |
| 6867 |
|
if ($GLOBALS['TCA'][$table]['ctrl']['versioningWS']) { |
| 6868 |
|
foreach ($wsFields as $field) { |
| 6869 |
|
$match = $matchStart . $field . $matchEnd; |
|
@@ 6868-6873 (lines=6) @@
|
| 6865 |
|
} |
| 6866 |
|
} |
| 6867 |
|
if ($GLOBALS['TCA'][$table]['ctrl']['versioningWS']) { |
| 6868 |
|
foreach ($wsFields as $field) { |
| 6869 |
|
$match = $matchStart . $field . $matchEnd; |
| 6870 |
|
if (!preg_match($match, $selectPart)) { |
| 6871 |
|
$selectPart .= ', ' . $connection->quoteIdentifier($table . '.' . $field) . ' AS ' . $connection->quoteIdentifier($field); |
| 6872 |
|
} |
| 6873 |
|
} |
| 6874 |
|
} |
| 6875 |
|
} |
| 6876 |
|
return $selectPart; |