[BUGFIX] Provide lang and uc data for workspace notification localization 02/53402/2
authorKevin Ditscheid <kevinditscheid@gmail.com>
Tue, 20 Jun 2017 21:07:41 +0000 (23:07 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 4 Jul 2017 21:15:55 +0000 (23:15 +0200)
The notification e-mails of workspace changes need the lang of the
BackendUser record, this change introduces the lang and uc fields
in the getBackendUsers-method to enable the right localization of
notifications.

Releases: master, 8.7
Resolves: #46217
Change-Id: I45991fa7ef1a5d3610da5f16c5f363aa1f697611
Reviewed-on: https://review.typo3.org/53402
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/workspaces/Classes/Service/StagesService.php

index 2e24df5..c99ffbf 100644 (file)
@@ -522,7 +522,7 @@ class StagesService implements \TYPO3\CMS\Core\SingletonInterface
 
         $backendUserList = implode(',', GeneralUtility::intExplode(',', $backendUserList));
         $backendUsers = BackendUtility::getUserNames(
-            'username, uid, email, realName',
+            'username, uid, email, realName, lang, uc',
             'AND uid IN (' . $backendUserList . ')' . BackendUtility::BEenableFields('be_users')
         );