Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

default value for whole number custom fields does not display or save #537

Open
4 tasks
TanyaStere42 opened this issue Aug 2, 2023 · 0 comments
Open
4 tasks
Labels
bug Something isn't working

Comments

@TanyaStere42
Copy link
Member

Expected Behavior

When a sighting is reported, the default value is saved unless a different value is provided by the user. Clearing the value is respected unless it is a required field.

Current Behavior

  1. As admin, create a custom sighting field that is a whole number with a default value
  2. Go to report sightings
  3. look at custom sighting field; will not have default value
  4. submit sighting
  5. go to sighting
  6. sighting will not have value in the whole number custom sighting

Additional test information - contributor test

Assume custom sighting field with default value is already created

  1. Log in as contributor
  2. Individual contribution Create a sighting as per usual.
  3. Fill in all the fields and hit submit.
  4. FE requests : /pending-sightings/{sightingGuid) which is not visible to the contributor user on the BE. FE should just show a "Thankyou" message for contributor created sightings

QA Verification

  • report a sighting without changing default value; verify default value is saved on the sighting
  • report a sighting and change the default value; verify your changed value is saved on the sighting
  • report a sighting with the default value on a required sighting field. clear the field; the sighting is blocked from being created
  • report a sighting with the default value on a non-required sighting field. clear the field. verify the field has no value saved on the sighting
@TanyaStere42 TanyaStere42 added the bug Something isn't working label Aug 2, 2023
@erinz2020 erinz2020 self-assigned this Sep 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants