Browse code

Fix missing default value for managedPropertyId database field

Benjamin Roth authored on20/09/2024 09:39:33
Showing1 changed files
... ...
@@ -178,7 +178,7 @@ $GLOBALS['TL_DCA']['tl_vr_real_estate_assets'] = array
178 178
             'inputType' => 'select',
179 179
             'foreignKey' => 'tl_vr_re_managedProperties.address',
180 180
             'eval'      => array('mandatory' => false, 'includeBlankOption' => true, 'submitOnChange' => true, 'tl_class' => 'w50', 'chosen' => true),
181
-            'sql'       => "int(10) unsigned NOT NULL",
181
+            'sql'       => "int(10) unsigned NOT NULL default 0",
182 182
             'relation'   => array('type' => 'belongsTo', 'load' => 'lazy')
183 183
         ),
184 184
         'livingSpace'           => array