From 5232bb1dea3af8cad1618dfe5399ed9f52a7957a Mon Sep 17 00:00:00 2001
From: Tim Wagner <tim.wagner@sgalinski.de>
Date: Tue, 11 Aug 2020 12:16:01 +0200
Subject: [PATCH] [BUGFIX] Add missing renderTypes for broken flexform fields

---
 Configuration/FlexForms/Latest.xml         | 3 +++
 Configuration/FlexForms/ListByCategory.xml | 4 ++++
 Configuration/FlexForms/Overview.xml       | 5 +++++
 3 files changed, 12 insertions(+)

diff --git a/Configuration/FlexForms/Latest.xml b/Configuration/FlexForms/Latest.xml
index 6c682bb..756ad1e 100644
--- a/Configuration/FlexForms/Latest.xml
+++ b/Configuration/FlexForms/Latest.xml
@@ -65,6 +65,7 @@
 							<label>LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:plugin.flexForm.starttime</label>
 							<config>
 								<type>input</type>
+								<renderType>inputDateTime</renderType>
 								<size>12</size>
 								<eval>datetime</eval>
 							</config>
@@ -76,6 +77,7 @@
 							<label>LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:plugin.flexForm.endtime</label>
 							<config>
 								<type>input</type>
+								<renderType>inputDateTime</renderType>
 								<size>12</size>
 								<eval>datetime</eval>
 							</config>
@@ -87,6 +89,7 @@
 							<label>LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:plugin.flexForm.sortBy</label>
 							<config>
 								<type>select</type>
+								<renderType>selectSingle</renderType>
 								<items>
 									<numIndex index="0">
 										<numIndex index="0">LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:plugin.flexForm.systemDefault</numIndex>
diff --git a/Configuration/FlexForms/ListByCategory.xml b/Configuration/FlexForms/ListByCategory.xml
index 5312f3b..27859b4 100644
--- a/Configuration/FlexForms/ListByCategory.xml
+++ b/Configuration/FlexForms/ListByCategory.xml
@@ -66,6 +66,7 @@
 							<label>LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:plugin.flexForm.starttime</label>
 							<config>
 								<type>input</type>
+								<renderType>inputDateTime</renderType>
 								<size>12</size>
 								<eval>datetime</eval>
 							</config>
@@ -77,6 +78,7 @@
 							<label>LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:plugin.flexForm.endtime</label>
 							<config>
 								<type>input</type>
+								<renderType>inputDateTime</renderType>
 								<size>12</size>
 								<eval>datetime</eval>
 							</config>
@@ -88,6 +90,7 @@
 							<label>LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:plugin.flexForm.sortBy</label>
 							<config>
 								<type>select</type>
+								<renderType>selectSingle</renderType>
 								<items>
 									<numIndex index="0">
 										<numIndex index="0">LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:plugin.flexForm.systemDefault</numIndex>
@@ -111,6 +114,7 @@
 							<label>LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:plugin.flexForm.sortOrder</label>
 							<config>
 								<type>select</type>
+								<renderType>selectSingle</renderType>
 								<items>
 									<numIndex index="0">
 										<numIndex index="0">LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:plugin.flexForm.systemDefault</numIndex>
diff --git a/Configuration/FlexForms/Overview.xml b/Configuration/FlexForms/Overview.xml
index 6460a6e..07f9007 100644
--- a/Configuration/FlexForms/Overview.xml
+++ b/Configuration/FlexForms/Overview.xml
@@ -15,6 +15,7 @@
 							<label>LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:plugin.overview.flexForm.groupBy</label>
 							<config>
 								<type>select</type>
+								<renderType>selectSingle</renderType>
 								<items>
 									<numIndex index="0">
 										<numIndex index="0">LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:plugin.overview.flexForm.groupBy.I.0</numIndex>
@@ -68,6 +69,7 @@
 							<label>LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:plugin.flexForm.starttime</label>
 							<config>
 								<type>input</type>
+								<renderType>inputDateTime</renderType>
 								<size>12</size>
 								<eval>datetime</eval>
 							</config>
@@ -78,6 +80,7 @@
 							<label>LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:plugin.flexForm.endtime</label>
 							<config>
 								<type>input</type>
+								<renderType>inputDateTime</renderType>
 								<size>12</size>
 								<eval>datetime</eval>
 							</config>
@@ -88,6 +91,7 @@
 							<label>LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:plugin.flexForm.sortBy</label>
 							<config>
 								<type>select</type>
+								<renderType>selectSingle</renderType>
 								<items>
 									<numIndex index="0">
 										<numIndex index="0">LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:plugin.flexForm.systemDefault</numIndex>
@@ -110,6 +114,7 @@
 							<label>LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:plugin.flexForm.sortOrder</label>
 							<config>
 								<type>select</type>
+								<renderType>selectSingle</renderType>
 								<items>
 									<numIndex index="0">
 										<numIndex index="0">LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:plugin.flexForm.systemDefault</numIndex>
-- 
GitLab