Skip to content

[Bug] Data dictionary ignores "restrict to types" #1944

Description

@Eveltjen00

Steps to Reproduce

  • Navigate to /administrate/setup/DataDictionary/ListEntries
  • Create a new rule bound to ca_objects.X (X being a metadataElement you defined yourself - in my case: ca_objects.minimumDepthInMeters = numeric field)
  • Set the Rule Level to Error and the Expression to ^ca_objects.minimumDepthInMeters ="", click Save
  • Set Restrict to types and choose a type (in my case DNA from soil and soil sample), click Save
  • Make a new object record of another type that has the metadataElement (in my case DNA from water) and leave the minimumDepthInMeters field blank
  • The error is given, even though it was not selected for that specific type of object.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions