Pennebaker / craftcms-thearchitect

CraftCMS plugin to generate content models from JSON data.
MIT License
171 stars 9 forks source link

update Matrix + superTable fields #67

Closed mmorkt closed 4 years ago

mmorkt commented 4 years ago

Hi, I'm trying to update a Matrix field containing a superTables from one site to another. Most of it works as expected, the field gets updated and the data remains. But the SuperTables looses all data. Tried to make some workarounds, but I can't get it to work.

I'm getting the same result if I simply create a matrix + supertable with a field inside. Like the code below.

When importing I'm getting a "success" Running Craft CMS 3.3.15

{ "fieldGroups": [ "Assets" ], "fields": [ { "group": "Assets", "name": "test", "handle": "test", "instructions": "", "type": "craft\\fields\\Matrix", "minBlocks": "", "maxBlocks": "", "propagationMethod": "all", "blockTypes": [ { "name": "testt", "handle": "testt", "fields": [ { "required": false, "name": "ttttt", "handle": "ttttt", "instructions": "", "type": "verbb\\supertable\\fields\\SuperTableField", "typesettings": { "minRows": "", "maxRows": "", "contentTable": "{{%stc_78_ttttt}}", "propagationMethod": "all", "staticField": "", "columns": [], "fieldLayout": "table", "selectionLabel": "", "blockTypes": [ { "required": false, "name": "test", "handle": "test", "instructions": "", "type": "craft\\fields\\PlainText", "typesettings": { "placeholder": "", "code": "", "multiline": "", "initialRows": "4", "charLimit": "", "columnType": "text" } } ] } } ] } ] } ] }