[BUGFIX] Follow-Up: Fix invalid constant usage 53/24753/2
authorSascha Egerer <sascha.egerer@dkd.de>
Mon, 14 Oct 2013 21:06:52 +0000 (23:06 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Mon, 14 Oct 2013 21:14:38 +0000 (23:14 +0200)
A non-existent constant was used which ends
up in an fatal error.

Resolves: #52551
Releases: 6.2
Change-Id: I2af59dfdbca0f5451e605b2aa99b1843ecd67bf7
Reviewed-on: https://review.typo3.org/24753
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/workspaces/Classes/Service/IntegrityService.php

index dc340f8..b942027 100644 (file)
@@ -143,7 +143,7 @@ class IntegrityService {
                                // Get localization parent from live workspace:
                                $languageParentRecord = BackendUtility::getRecord($table, $versionRow[$languageParentField], 'uid,t3ver_state');
                                // If localization parent is a "new placeholder" record:
-                               if (VersionState::cast($languageParentRecord['t3ver_state'])->equals(\TYPO3\CMS\Core\Type\VersionState::NEW_PLACEHOLDER)) {
+                               if (VersionState::cast($languageParentRecord['t3ver_state'])->equals(VersionState::NEW_PLACEHOLDER)) {
                                        $title = BackendUtility::getRecordTitle($table, $versionRow);
                                        // Add warning for current versionized record:
                                        $this->addIssue($element->getLiveRecord()->getIdentifier(), self::STATUS_Warning, sprintf(\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('integrity.dependsOnDefaultLanguageRecord', 'workspaces'), $title));