Skip to content

Pick list contains two null values #7588

@lexiclevenger

Description

@lexiclevenger

Describe the bug
Bolddesk ticket from Alexis Beck at Muséum d'histoire naturelle (MHN):

I just noticed in a couple of picklists that use a field from a table to define the values that there are two blank entries instead of one.

This only occurs for the Locality -> GeoRefStatus field in the Invertebrati collection of the MCSN database. I cannot recreate the issue with any other pick list, but if the pick list is deleted and re-made, it occurs again. If the null value is selected, the selection is changed to the first null value, and the value appears as null in the API when the record is saved.

The pick list uses the 'Field From Table' type, and there are several records where the value is null, so it is possible that the database is counting null as a separate pick list item.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Data Entry -> Locality
  2. Click on the GeoRefStatus
  3. See that there are two null values in the pick list

Expected behavior
There should only be one null item at the top of the pick list as seen below.

Image

Screenshots

GeoRefStatus pick list:
Image

Pick List info:
Image

Please fill out the following information manually:

Metadata

Metadata

Assignees

No one assigned

    Labels

    2 - FormsIssues that are related to the form system3 - VerifiedIf an institution makes a request and it has been confirmed to be accurate, this tag will be used.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions