diff --git a/src/bundle/Resources/config/services/rest.yaml b/src/bundle/Resources/config/services/rest.yaml index 38f007e730..f5804287b3 100644 --- a/src/bundle/Resources/config/services/rest.yaml +++ b/src/bundle/Resources/config/services/rest.yaml @@ -44,7 +44,7 @@ services: Ibexa\AdminUi\REST\Input\Parser\ContentType\FieldDefinitionCreate: parent: Ibexa\Rest\Server\Common\Parser tags: - - { name: ibexa.rest.input.parser, mediaType: application/vnd.ibexa.api.ContentTypFieldDefinitionCreate } + - { name: ibexa.rest.input.parser, mediaType: application/vnd.ibexa.api.ContentTypeFieldDefinitionCreate } Ibexa\AdminUi\REST\Input\Parser\ContentType\FieldDefinitionDelete: parent: Ibexa\Rest\Server\Common\Parser diff --git a/src/bundle/Resources/public/js/scripts/admin.contenttype.edit.js b/src/bundle/Resources/public/js/scripts/admin.contenttype.edit.js index 109bcdab2c..c1db46f231 100644 --- a/src/bundle/Resources/public/js/scripts/admin.contenttype.edit.js +++ b/src/bundle/Resources/public/js/scripts/admin.contenttype.edit.js @@ -25,7 +25,7 @@ add: { actionName: 'add_field_definition', method: 'POST', - contentType: 'application/vnd.ibexa.api.ContentTypFieldDefinitionCreate+json', + contentType: 'application/vnd.ibexa.api.ContentTypeFieldDefinitionCreate+json', }, remove: { actionName: 'remove_field_definition',