Browse code

Set regexp field to not nullable as it is a mandatory field

Benjamin Roth authored on08/05/2025 14:02:27
Showing1 changed files
... ...
@@ -101,7 +101,7 @@ $GLOBALS['TL_DCA']['tl_memberfiles_config'] = [
101 101
             'exclude'   => true,
102 102
             'inputType' => 'text',
103 103
             'eval'      => ['mandatory' => true, 'tl_class' => 'w50', 'maxlength' => 64, 'preserveTags' => true, 'decodeEntities' => true, 'placeholder' => &$GLOBALS['TL_LANG']['tl_memberfiles_config']['regexp']['placeholder']],
104
-            'sql'       => ['type' => 'string', 'length' => 64, 'notnull' => false]
104
+            'sql'       => ['type' => 'string', 'length' => 64, 'default' => '']
105 105
         ],
106 106
         'fields'  => [
107 107
             'exclude'   => true,