Skip to content

Commit

Permalink
Readd unsigned flag for double columns
Browse files Browse the repository at this point in the history
This reverts commit a7345be.
  • Loading branch information
ausi committed Mar 23, 2021
1 parent 7129426 commit 699c899
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,16 @@
"source":"https://github.com/madeyourday/contao-rocksolid-slider"
},
"require":{
"php":">=5.5",
"php":">=7.1",
"contao/core-bundle":"^4.4.2"
},
"require-dev": {
"contao/manager-plugin": "^2.0"
},
"conflict": {
"contao/core": "*",
"contao/manager-plugin": "<2.0 || >=3.0"
"contao/manager-plugin": "<2.0 || >=3.0",
"doctrine/dbal":"<2.6"
},
"autoload":{
"psr-4": {
Expand Down
10 changes: 5 additions & 5 deletions src/Resources/contao/dca/tl_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -469,14 +469,14 @@
'exclude' => true,
'inputType' => 'text',
'eval' => array('tl_class' => 'w50 clr'),
'sql' => "double NOT NULL default '0'",
'sql' => "double unsigned NOT NULL default '0'",
);
$GLOBALS['TL_DCA']['tl_content']['fields']['rsts_thumbs_visibleAreaMax'] = array(
'label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_visibleAreaMax'],
'exclude' => true,
'inputType' => 'text',
'eval' => array('tl_class' => 'w50'),
'sql' => "double NOT NULL default '0'",
'sql' => "double unsigned NOT NULL default '0'",
);
$GLOBALS['TL_DCA']['tl_content']['fields']['rsts_thumbs_slideMinSize'] = array(
'label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_slideMinSize'],
Expand Down Expand Up @@ -538,15 +538,15 @@
'exclude' => true,
'inputType' => 'text',
'eval' => array('tl_class' => 'w50 clr'),
'sql' => "double NOT NULL default '0'",
'sql' => "double unsigned NOT NULL default '0'",
);
// maximum size of the area for the visible slide in px
$GLOBALS['TL_DCA']['tl_content']['fields']['rsts_visibleAreaMax'] = array(
'label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_visibleAreaMax'],
'exclude' => true,
'inputType' => 'text',
'eval' => array('tl_class' => 'w50'),
'sql' => "double NOT NULL default '0'",
'sql' => "double unsigned NOT NULL default '0'",
);
// Alignment of the visible area (0 = start, 0.5 = center, 1 = end)
$GLOBALS['TL_DCA']['tl_content']['fields']['rsts_visibleAreaAlign'] = array(
Expand All @@ -556,7 +556,7 @@
'options' => array('0', '50', '100'),
'reference' => &$GLOBALS['TL_LANG']['tl_module']['rsts_visibleAreaAligns'],
'eval' => array('tl_class' => 'w50'),
'sql' => "double NOT NULL default '50'",
'sql' => "double unsigned NOT NULL default '50'",
);
// minimal size of one slide in px
$GLOBALS['TL_DCA']['tl_content']['fields']['rsts_slideMinSize'] = array(
Expand Down
10 changes: 5 additions & 5 deletions src/Resources/contao/dca/tl_module.php
Original file line number Diff line number Diff line change
Expand Up @@ -469,14 +469,14 @@
'exclude' => true,
'inputType' => 'text',
'eval' => array('tl_class' => 'w50 clr'),
'sql' => "double NOT NULL default '0'",
'sql' => "double unsigned NOT NULL default '0'",
);
$GLOBALS['TL_DCA']['tl_module']['fields']['rsts_thumbs_visibleAreaMax'] = array(
'label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_visibleAreaMax'],
'exclude' => true,
'inputType' => 'text',
'eval' => array('tl_class' => 'w50'),
'sql' => "double NOT NULL default '0'",
'sql' => "double unsigned NOT NULL default '0'",
);
$GLOBALS['TL_DCA']['tl_module']['fields']['rsts_thumbs_slideMinSize'] = array(
'label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_slideMinSize'],
Expand Down Expand Up @@ -538,15 +538,15 @@
'exclude' => true,
'inputType' => 'text',
'eval' => array('tl_class' => 'w50 clr'),
'sql' => "double NOT NULL default '0'",
'sql' => "double unsigned NOT NULL default '0'",
);
// maximum size of the area for the visible slide in px
$GLOBALS['TL_DCA']['tl_module']['fields']['rsts_visibleAreaMax'] = array(
'label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_visibleAreaMax'],
'exclude' => true,
'inputType' => 'text',
'eval' => array('tl_class' => 'w50'),
'sql' => "double NOT NULL default '0'",
'sql' => "double unsigned NOT NULL default '0'",
);
// Alignment of the visible area (0 = start, 0.5 = center, 1 = end)
$GLOBALS['TL_DCA']['tl_module']['fields']['rsts_visibleAreaAlign'] = array(
Expand All @@ -556,7 +556,7 @@
'options' => array('0', '50', '100'),
'reference' => &$GLOBALS['TL_LANG']['tl_module']['rsts_visibleAreaAligns'],
'eval' => array('tl_class' => 'w50'),
'sql' => "double NOT NULL default '50'",
'sql' => "double unsigned NOT NULL default '50'",
);
// minimal size of one slide in px
$GLOBALS['TL_DCA']['tl_module']['fields']['rsts_slideMinSize'] = array(
Expand Down

0 comments on commit 699c899

Please sign in to comment.