diff --git a/rero_ils/modules/items/jsonschemas/items/item-v0.0.1.json b/rero_ils/modules/items/jsonschemas/items/item-v0.0.1.json index 82e0ddd3a9..4bcc7ee6cf 100644 --- a/rero_ils/modules/items/jsonschemas/items/item-v0.0.1.json +++ b/rero_ils/modules/items/jsonschemas/items/item-v0.0.1.json @@ -9,8 +9,6 @@ "pid", "organisation", "library", - "location", - "item_type", "type", "document", "status" @@ -145,7 +143,8 @@ "widget": { "formlyConfig": { "expressions": { - "hide": "field?.parent?.model && field.parent.model.type === 'issue'" + "props.required": "field?.parent?.model?.type !== 'issue'", + "hide": "field?.parent?.model?.type === 'issue'" }, "props": { "cssClass": "editor-title" @@ -191,7 +190,8 @@ "widget": { "formlyConfig": { "expressions": { - "hide": "field?.parent?.model && field.parent.model.type === 'issue'" + "props.required": "field?.parent?.model?.type !== 'issue'", + "hide": "field?.parent?.model?.type === 'issue'" }, "props": { "cssClass": "editor-title"