Skip to content

[BUG] Deleting a term does not delete Typed Relation references to it. #86

@rosiel

Description

@rosiel

What steps does it take to reproduce the issue?

  • Create a term.

  • Create a typed relation field on a node [any entity? not sure]

  • Refer to the created term in the typed relation field.

  • Delete the term.

  • When does this issue occur?
    When you delete the term the problem happens; it becomes visible on reloading the node's page

  • Which page does it occur on?
    Any node. I have not tested on other entities.

  • What happens?
    The value remains in the node. When viewing the node, the "Type" label appears (in this case "Attributed name:"), but where the term name formerly rendered, nothing is rendered.

Screenshot showing the typed relation with a type but no term content.

Devel's node JSON showing intact reference to missing term

  • To whom does it occur (anonymous visitor, editor, administrator)?
    It is confusing to everyone, I'm sure.

  • What did you expect to happen?
    I thought the delete hook was picked up by typed relation fields.

Which version of Islandora are you using?
the version on the sandbox. The real question is what version of controlled access terms? Which is not apparent from the interface.

Any related open or closed issues to this bug report?

Not that I know of

Screenshots:
inline

EDIT: this is not a Typed Relation issue. This is how Drupal Entity Relationship fields work too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions