Skip to content

Commit

Permalink
Merge pull request #37 from aschempp/patch-1
Browse files Browse the repository at this point in the history
Invalid SQL definition for cssID
  • Loading branch information
doishub authored Dec 2, 2020
2 parents 5a80d89 + 441028c commit ad6ebcf
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Resources/contao/dca/tl_article.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/contao/dca/tl_calendar_events.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/contao/dca/tl_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/contao/dca/tl_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/contao/dca/tl_form_field.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/contao/dca/tl_layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/contao/dca/tl_module.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/contao/dca/tl_news.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/contao/dca/tl_page.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit ad6ebcf

Please sign in to comment.