mesh
mesh copied to clipboard
Renaming schema/microschema does not update allows in field definitions
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
- Create this schema:
{
"name": "test",
"fields": [
{
"name": "ref",
"type": "node",
"allow": [
"folder"
]
}
]
}
- 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.
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.