From 7e2db04da231817f8718be84f8230410b8c32439 Mon Sep 17 00:00:00 2001
From: Stefan Galinski <stefan@sgalinski.de>
Date: Tue, 4 Oct 2016 21:27:47 +0200
Subject: [PATCH] [BUGFIX] Fix author configuration (l10n issue and broken
 sgnews_author TCA)

---
 Configuration/TCA/Overrides/pages.php | 17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)

diff --git a/Configuration/TCA/Overrides/pages.php b/Configuration/TCA/Overrides/pages.php
index 63ca9c4..280ecbb 100644
--- a/Configuration/TCA/Overrides/pages.php
+++ b/Configuration/TCA/Overrides/pages.php
@@ -108,21 +108,16 @@ $columns = array_merge(
 			'l10n_exclude' => TRUE,
 			'label' => 'LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:pages.tx_sgnews_author',
 			'config' => [
-				'type' => 'select',
+				'type' => 'group',
+				'internal_type' => 'db',
+				'allowed' => 'fe_users',
+				'size' => 1,
 				'minitems' => 0,
-				'foreign_table' => 'fe_users',
-				'foreign_table_where' => 'ORDER BY fe_users.name',
+				'maxitems' => 1,
 				'items' => [
 					['', ''],
 				],
 				'wizards' => [
-					'edit' => [
-						'type' => 'popup',
-						'title' => 'Edit',
-						'module' => ['name' => 'wizard_edit'],
-						'icon' => 'edit2.gif',
-						'popup_onlyOpenIfSelected' => 1,
-					],
 					'suggest' => [
 						'type' => 'suggest',
 					],
@@ -264,7 +259,7 @@ if (!\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('realurl')) {
 
 $GLOBALS['TCA']['pages_language_overlay']['types'][116] = [
 	'showitem' => '--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.standard;standard,
-			subtitle, description, tx_realurl_pathsegment,
+			subtitle, description, tx_realurl_pathsegment, author,
 		--div--;LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:pages.tabs.images,
 			tx_sgnews_teaser2_image, tx_sgnews_teaser1_image,
 		--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.metadata,
-- 
GitLab