diff --git a/Classes/Backend/Hook/CommandMapHook.php b/Classes/Backend/Hook/CommandMapHook.php index 96981f3..9394550 100644 --- a/Classes/Backend/Hook/CommandMapHook.php +++ b/Classes/Backend/Hook/CommandMapHook.php @@ -20,7 +20,7 @@ class CommandMapHook /** * @param int|string $id * @param bool|array $pasteUpdate - * @param string $value + * @param string|int $value */ public function processCmdmap_postProcess( string $command, @@ -38,7 +38,8 @@ public function processCmdmap_postProcess( } $value = (int) $value; - $currentPage = BackendUtility::getRecord('pages', $id, 'uid,slug,sys_language_uid'); + // Important: No spaces in the fields list!! + $currentPage = BackendUtility::getRecord('pages', $id, 'uid,slug,sys_language_uid,tx_sluggi_lock,tx_sluggi_sync'); if (!empty($currentPage)) { $languageId = $currentPage['sys_language_uid']; $currentSlugSegment = SlugHelper::getLastSlugSegment($currentPage['slug']); diff --git a/Classes/Backend/Hook/DatamapHook.php b/Classes/Backend/Hook/DatamapHook.php index 8bcf62e..6c0c57b 100644 --- a/Classes/Backend/Hook/DatamapHook.php +++ b/Classes/Backend/Hook/DatamapHook.php @@ -39,7 +39,7 @@ public function moveRecord_afterAnotherElementPostProcess( protected function updateSlugForMovedPage(int $id, int $targetId, DataHandler $dataHandler): void { // Important: No spaces in the fields list!! - $currentPage = BackendUtility::getRecordWSOL('pages', $id, 'uid,slug,sys_language_uid'); + $currentPage = BackendUtility::getRecordWSOL('pages', $id, 'uid,slug,sys_language_uid,tx_sluggi_lock,tx_sluggi_sync'); if (!empty($currentPage) && !PermissionHelper::isLocked($currentPage)) { $allowOnlyLastSegment = (bool) Configuration::get('last_segment_only'); diff --git a/Classes/Backend/Hook/DispatchNotificationHook.php b/Classes/Backend/Hook/DispatchNotificationHook.php index 6847549..e2b30b7 100644 --- a/Classes/Backend/Hook/DispatchNotificationHook.php +++ b/Classes/Backend/Hook/DispatchNotificationHook.php @@ -14,7 +14,7 @@ final class DispatchNotificationHook * Called as a hook in \TYPO3\CMS\Backend\Utility\BackendUtility::getUpdateSignalCode * calls a JS function to send the slug change notification */ - public function dispatchNotification(array $params) + public function dispatchNotification(array $params): void { $javaScriptRenderer = GeneralUtility::makeInstance(PageRenderer::class)->getJavaScriptRenderer(); $javaScriptRenderer->addJavaScriptModuleInstruction(