Skip to content

Commit 8d0dee1

Browse files
authored
allow negative values for sliderSpaceBetween
1 parent 9c297c8 commit 8d0dee1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Resources/contao/dca/tl_content.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
'exclude' => true,
4343
'default' => 0,
4444
'inputType' => 'text',
45-
'eval' => array('rgxp'=>'natural', 'maxlength'=>5, 'tl_class'=>'w50'),
46-
'sql' => "int(10) unsigned NOT NULL default '0'"
45+
'eval' => array('rgxp'=>'digit', 'maxlength'=>5, 'tl_class'=>'w50'),
46+
'sql' => ['type' => 'integer', 'unsigned' => false, 'default' => 0],
4747
);
4848

4949
$GLOBALS['TL_DCA']['tl_content']['fields']['sliderEffect'] = array
@@ -141,7 +141,7 @@
141141
'label' => &$GLOBALS['TL_LANG']['tl_content']['sliderBreakpointsSettings']['spaceBetween'],
142142
'exclude' => true,
143143
'inputType' => 'text',
144-
'eval' => array('rgxp'=>'natural')
144+
'eval' => array('rgxp'=>'digit')
145145
),
146146
)
147147
),

0 commit comments

Comments
 (0)