IchHabRecht / mask_export

Export your mask elements as extension
GNU General Public License v2.0
45 stars 27 forks source link

DB-Import for nested elements fails due to missing default-value of parentid. #197

Open datamints opened 2 years ago

datamints commented 2 years ago

When creating a content-element with nested elements, parentid is configured as int in the database but in the TCA, no default value is configured (-> so it is handled as string). In our case, this causes empty Strings to be passed in the INSERT-Query, which in turn caused an SQL-Error when trying to import. We patched it locally by just adding 'default' => 0 in the TCA for parentid.