Thanks to visit codestin.com
Credit goes to github.com

Skip to content

editor: bf:Organisation was expected #3231

@PascalRepond

Description

@PascalRepond

Bug description:

In existing document, when changing a subfield (in field contribution or subject) from MEF-link agent to local agent, the contribution pid stays in the data sent when submitting the document. This creates an error "bf:Organisation was expected" and prevents the document to be saved.

This only happens when changing a subfield that had already been saved with a MEF-link.

Sentry: https://sentryils.rero.ch:8443/organizations/sentry-rero-ils-prod/issues/53001/

RERO-ILS-2TY

Expected behavior:

  • When editing a document, switching an existing agent field's oneOf should completely clear the subfield to allow entering new data.

Steps to Reproduce:

  1. Go to https://ils.test.rero.ch/professional/records/documents/edit/1069
  2. Scroll down to Contribution, change the oneOf from "link to a person" to "person"
  3. Try to save the document
  4. See the error

Context

Server:

Version:

v1.14.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBreaks something but is not blockingf: dataAbout data model, importation, transformation, exportation of data, specific for bibliographic dataf: editorConcerns editor based on JSON schema AND custom editor

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions