Pennebaker / craftcms-thearchitect

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

Error on import: Undefined property: stdClass::$fieldLayout #52

Closed russback closed 6 years ago

russback commented 7 years ago

Looks like the export didn't include a fieldLayout property on the JSON when no fields have been set on the tag element.

"tags": [
        {
            "id": "1",
            "name": "Default",
            "handle": "default"
        },
        {
            "id": "2",
            "name": "Sites",
            "handle": "sites"
        }
    ]

The error was thrown from craft/plugins/thearchitect/services/TheArchitectService.php:1743

spAnser commented 6 years ago

I cannot seem to reproduce this using your data.

spAnser commented 6 years ago

After updating my dev environment I am now running into this issue. I am working on a fix now.