Fix autosave.js support for checkboxes
What does this MR do and why?
This fixes a bug related to autosave.js
with restoring the checkbox values.
Bug: The current code overrides the checked checkboxes when no localstorage key is found. This resulted in setting security issues as non-confidential. See https://gitlab.slack.com/archives/CV09DAXEW/p1670254362701359.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
- Go to Security > Vulnerability Report
- Select a vulnerability
- Select "Create issue"
- The new issue form should have the
confidential
checkbox checked.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Dheeraj Joshi