Skip to content

(fix) Fixed issue where checkboxes would lose pre-selected values upon form loading#49

Merged
ibacher merged 1 commit into
openmrs:mainfrom
icrc-psousa:fix/checkbox-pre-selected-values
May 26, 2023
Merged

(fix) Fixed issue where checkboxes would lose pre-selected values upon form loading#49
ibacher merged 1 commit into
openmrs:mainfrom
icrc-psousa:fix/checkbox-pre-selected-values

Conversation

@icrc-psousa

Copy link
Copy Markdown
Contributor

Requirements

  • This PR has a title that briefly describes the work done, including the ticket number if there is a ticket.
  • My work conforms to the OpenMRS 3.0 Styleguide and design documentation.
  • My work includes tests or is validated by existing tests.

Summary

When editing an encounter, if there were observations saved using checkboxes within the form, the previously selected values were not appearing as checked. The observations were being saved correctly, the issue was that when opening the form, checkbox values were always reset to an empty array.

@ibacher ibacher merged commit 2f23fc0 into openmrs:main May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants