Skip to content
Snippets Groups Projects
Commit 5b5f12cf authored by Timothee P's avatar Timothee P :sunflower:
Browse files

fix checkbox wrong value when false

parent eb50668f
No related branches found
No related tags found
1 merge request!111REDMINE_ISSUE-12010
......@@ -111,7 +111,11 @@ export default {
methods: {
updateStore_extra_form(evt) {
let newExtraForm = this.field;
newExtraForm["value"] = evt.target.checked || evt.target.value; //* if checkbox use "check", if undefined, use "value"
if (this.field.field_type === "boolean") {
newExtraForm["value"] = evt.target.checked; //* if checkbox use "checked"
} else {
newExtraForm["value"] = evt.target.value;
}
this.$store.commit("feature/UPDATE_EXTRA_FORM", newExtraForm);
},
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment