mesh icon indicating copy to clipboard operation
mesh copied to clipboard

Renaming schema/microschema does not update allows in field definitions

Open philippguertler opened this issue 6 years ago • 1 comments

Gentics Mesh Version, operating system, or hardware.

  • v0.21.1

Problem

When renaming a schema or microschema, the allow property of all schema field definitions are not updated accordingly. This leads to fields that allow adding nodes of non-existing schemas which messes up the Mesh-UI.

Reproducer

  1. Create this schema:
{
    "name": "test",
    "fields": [
        {
            "name": "ref",
            "type": "node",
            "allow": [
                "folder"
            ]
        }
    ]
}
  1. Rename the folder schema

Expected behaviour and actual behaviour

I expected the name of the allowed schema to be changed as well. Currently this does not happen.

philippguertler avatar Jun 07 '18 11:06 philippguertler

This is a major issue, on 1.3.2 the UI does not allow changing the modified name. You have to do acrobatics on the schema definition to get to fix it. It should at least display the non-existent entry so one can remove the entry.

jalberto-ghub avatar Jan 09 '20 21:01 jalberto-ghub