From cd7a929651f6d1e096e3ebcff53d3258f2524d9f Mon Sep 17 00:00:00 2001 From: Andreas Schempp Date: Wed, 2 Dec 2020 13:39:46 +0100 Subject: [PATCH 1/9] Invalid SQL definition for tl_article.cssID --- src/Resources/contao/dca/tl_article.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Resources/contao/dca/tl_article.php b/src/Resources/contao/dca/tl_article.php index 279b6d5..6edaf84 100644 --- a/src/Resources/contao/dca/tl_article.php +++ b/src/Resources/contao/dca/tl_article.php @@ -15,7 +15,7 @@ 'sql' => "blob NULL" ); -$GLOBALS['TL_DCA']['tl_article']['fields']['cssID']['sql'] = "text NOT NULL default ''"; +$GLOBALS['TL_DCA']['tl_article']['fields']['cssID']['sql'] = "text NULL"; $GLOBALS['TL_DCA']['tl_article']['config']['onload_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'addPalette'); $GLOBALS['TL_DCA']['tl_article']['fields']['cssID']['load_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'onLoad'); From c6110a3720bc77c2618cf069a908819bd012d5a0 Mon Sep 17 00:00:00 2001 From: Andreas Schempp Date: Wed, 2 Dec 2020 13:41:47 +0100 Subject: [PATCH 2/9] Update tl_content.php --- src/Resources/contao/dca/tl_content.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Resources/contao/dca/tl_content.php b/src/Resources/contao/dca/tl_content.php index 3399d20..82d3a45 100644 --- a/src/Resources/contao/dca/tl_content.php +++ b/src/Resources/contao/dca/tl_content.php @@ -15,7 +15,7 @@ 'sql' => "blob NULL" ); -$GLOBALS['TL_DCA']['tl_content']['fields']['cssID']['sql'] = "text NOT NULL default ''"; +$GLOBALS['TL_DCA']['tl_content']['fields']['cssID']['sql'] = "text NULL"; $GLOBALS['TL_DCA']['tl_content']['config']['onload_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'addPalette'); $GLOBALS['TL_DCA']['tl_content']['fields']['cssID']['load_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'onLoad'); From c887489eb5668413b29cd1ff67e2f909da1267bb Mon Sep 17 00:00:00 2001 From: Andreas Schempp Date: Wed, 2 Dec 2020 13:42:04 +0100 Subject: [PATCH 3/9] Update tl_calendar_events.php --- src/Resources/contao/dca/tl_calendar_events.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Resources/contao/dca/tl_calendar_events.php b/src/Resources/contao/dca/tl_calendar_events.php index 3a92272..76a3033 100644 --- a/src/Resources/contao/dca/tl_calendar_events.php +++ b/src/Resources/contao/dca/tl_calendar_events.php @@ -19,7 +19,7 @@ 'sql' => "blob NULL" ); - $GLOBALS['TL_DCA']['tl_calendar_events']['fields']['cssClass']['sql'] = "text NOT NULL default ''"; + $GLOBALS['TL_DCA']['tl_calendar_events']['fields']['cssClass']['sql'] = "text NULL"; $GLOBALS['TL_DCA']['tl_calendar_events']['config']['onload_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'addPalette'); $GLOBALS['TL_DCA']['tl_calendar_events']['fields']['cssClass']['load_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'onLoad'); From 20aa7dc9217e1a6b9e79de88ddd773573d961396 Mon Sep 17 00:00:00 2001 From: Andreas Schempp Date: Wed, 2 Dec 2020 13:42:17 +0100 Subject: [PATCH 4/9] Update tl_form.php --- src/Resources/contao/dca/tl_form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Resources/contao/dca/tl_form.php b/src/Resources/contao/dca/tl_form.php index 0663301..d5ca2de 100644 --- a/src/Resources/contao/dca/tl_form.php +++ b/src/Resources/contao/dca/tl_form.php @@ -15,7 +15,7 @@ 'sql' => "blob NULL" ); -$GLOBALS['TL_DCA']['tl_form']['fields']['attributes']['sql'] = "text NOT NULL default ''"; +$GLOBALS['TL_DCA']['tl_form']['fields']['attributes']['sql'] = "text NULL"; $GLOBALS['TL_DCA']['tl_form']['config']['onload_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'addPalette'); $GLOBALS['TL_DCA']['tl_form']['fields']['attributes']['load_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'onLoad'); From ed00bc4a4aaea3b1880b7f2db38a451e8035b45d Mon Sep 17 00:00:00 2001 From: Andreas Schempp Date: Wed, 2 Dec 2020 13:42:31 +0100 Subject: [PATCH 5/9] Update tl_form_field.php --- src/Resources/contao/dca/tl_form_field.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Resources/contao/dca/tl_form_field.php b/src/Resources/contao/dca/tl_form_field.php index 5b21c6b..470da09 100644 --- a/src/Resources/contao/dca/tl_form_field.php +++ b/src/Resources/contao/dca/tl_form_field.php @@ -15,7 +15,7 @@ 'sql' => "blob NULL" ); -$GLOBALS['TL_DCA']['tl_form_field']['fields']['class']['sql'] = "text NOT NULL default ''"; +$GLOBALS['TL_DCA']['tl_form_field']['fields']['class']['sql'] = "text NULL"; $GLOBALS['TL_DCA']['tl_form_field']['config']['onload_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'addPalette'); $GLOBALS['TL_DCA']['tl_form_field']['list']['sorting']['child_record_callback'] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'listFormFields'); From 64366a7643b39e8573b718446182c8c88c155503 Mon Sep 17 00:00:00 2001 From: Andreas Schempp Date: Wed, 2 Dec 2020 13:42:45 +0100 Subject: [PATCH 6/9] Update tl_layout.php --- src/Resources/contao/dca/tl_layout.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Resources/contao/dca/tl_layout.php b/src/Resources/contao/dca/tl_layout.php index 20bb0ec..d07c600 100644 --- a/src/Resources/contao/dca/tl_layout.php +++ b/src/Resources/contao/dca/tl_layout.php @@ -15,7 +15,7 @@ 'sql' => "blob NULL" ); -$GLOBALS['TL_DCA']['tl_layout']['fields']['cssClass']['sql'] = "text NOT NULL default ''"; +$GLOBALS['TL_DCA']['tl_layout']['fields']['cssClass']['sql'] = "text NULL"; $GLOBALS['TL_DCA']['tl_layout']['config']['onload_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'addPalette'); $GLOBALS['TL_DCA']['tl_layout']['fields']['cssClass']['load_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'onLoad'); From d1824dbe1d7ca385c65f736f6a958faaad03955a Mon Sep 17 00:00:00 2001 From: Andreas Schempp Date: Wed, 2 Dec 2020 13:43:02 +0100 Subject: [PATCH 7/9] Update tl_module.php --- src/Resources/contao/dca/tl_module.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Resources/contao/dca/tl_module.php b/src/Resources/contao/dca/tl_module.php index 5f4bd87..78444c5 100644 --- a/src/Resources/contao/dca/tl_module.php +++ b/src/Resources/contao/dca/tl_module.php @@ -15,7 +15,7 @@ 'sql' => "blob NULL" ); -$GLOBALS['TL_DCA']['tl_module']['fields']['cssID']['sql'] = "text NOT NULL default ''"; +$GLOBALS['TL_DCA']['tl_module']['fields']['cssID']['sql'] = "text NULL"; $GLOBALS['TL_DCA']['tl_module']['config']['onload_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'addPalette'); $GLOBALS['TL_DCA']['tl_module']['fields']['cssID']['load_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'onLoad'); From cb3307639912bb8bec27d2b7dd026a80367cfbab Mon Sep 17 00:00:00 2001 From: Andreas Schempp Date: Wed, 2 Dec 2020 13:43:19 +0100 Subject: [PATCH 8/9] Update tl_news.php --- src/Resources/contao/dca/tl_news.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Resources/contao/dca/tl_news.php b/src/Resources/contao/dca/tl_news.php index 23c53f6..8b77d5a 100644 --- a/src/Resources/contao/dca/tl_news.php +++ b/src/Resources/contao/dca/tl_news.php @@ -19,7 +19,7 @@ 'sql' => "blob NULL" ); - $GLOBALS['TL_DCA']['tl_news']['fields']['cssClass']['sql'] = "text NOT NULL default ''"; + $GLOBALS['TL_DCA']['tl_news']['fields']['cssClass']['sql'] = "text NULL"; $GLOBALS['TL_DCA']['tl_news']['config']['onload_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'addPalette'); $GLOBALS['TL_DCA']['tl_news']['fields']['cssClass']['load_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'onLoad'); From 441028ce8901449ab0a1f13157b56b02c3b404f7 Mon Sep 17 00:00:00 2001 From: Andreas Schempp Date: Wed, 2 Dec 2020 13:43:34 +0100 Subject: [PATCH 9/9] Update tl_page.php --- src/Resources/contao/dca/tl_page.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Resources/contao/dca/tl_page.php b/src/Resources/contao/dca/tl_page.php index f5d0643..c291f31 100644 --- a/src/Resources/contao/dca/tl_page.php +++ b/src/Resources/contao/dca/tl_page.php @@ -15,7 +15,7 @@ 'sql' => "blob NULL" ); -$GLOBALS['TL_DCA']['tl_page']['fields']['cssClass']['sql'] = "text NOT NULL default ''"; +$GLOBALS['TL_DCA']['tl_page']['fields']['cssClass']['sql'] = "text NULL"; $GLOBALS['TL_DCA']['tl_page']['config']['onload_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'addPalette'); $GLOBALS['TL_DCA']['tl_page']['fields']['cssClass']['load_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'onLoad');