Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

defaultValue for Boolean datatypes is broken #4580

Open
1 task done
dtroelofsprins opened this issue Dec 20, 2024 · 0 comments
Open
1 task done

defaultValue for Boolean datatypes is broken #4580

dtroelofsprins opened this issue Dec 20, 2024 · 0 comments
Labels
app:forms app:schema bug Something isn't working priority Features/bugs that we should not let wait

Comments

@dtroelofsprins
Copy link
Contributor

Have you checked if this issue already exists?

  • yes

Molgenis EMX2 version

v41.2

Description

Since version v11.38.1 the input boolean has changed (https://github.com/molgenis/molgenis-emx2/releases/tag/v11.38.1), but now by default (even without having added a defaultValue), the default is always No. Moreover, when a defaultValue is included then it's always Yes, even when defaultValue=No/no/NO (or any other (wrong) value).

Reproduction steps

1.) Goto https://emx2.dev.molgenis.org (or a localhost)
2.) create a new schema with template biobank_directory_staging
3.) Go to Biobanks and add a new record, at the end of the form there are three column which have all boolean datatypes. These default to No, No and Yes. The last one is Yes because a defaultValue is included for this column (which is currently false, as this used to work).
4.) Goto the schema editor and change in Biobanks, Withdrawn column the defaultValue, only when it's left empty the default = No all other values are Yes

Same can be done with a version before 11.38.1, for example 11.28.2 => see that three last columns in the Biobanks form have 1,2 no default value and Withdrawn had "false" as default, which in indeed as it is included in the schema.

Expected behaviour

1.) When no defaultValue is included for a column of datatype = Bool, all options should be left empty.
2.) It should be possible to include a defaultValue=No.

System configuration

  • Device: Computer
  • Operating system: Ios
  • Browser: Safari
@dtroelofsprins dtroelofsprins added bug Something isn't working app:schema app:forms priority Features/bugs that we should not let wait labels Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app:forms app:schema bug Something isn't working priority Features/bugs that we should not let wait
Projects
None yet
Development

No branches or pull requests

1 participant