Pennebaker / craft-architect

A plugin for importing and exporting content models from Craft 3/4 using JSON.
MIT License
72 stars 6 forks source link

Updating Matrix fields containing supertables #46

Closed mmorkt closed 4 years ago

mmorkt commented 4 years ago

Hi, I'm trying to update a Matrix field containing a supertable 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" } } ] } } ] } ] } ] }