Skip to content
Snippets Groups Projects
Verified Commit 76f8ad43 authored by Janis Streib's avatar Janis Streib :owl:
Browse files

FIX: broken checkbox states in dbeditor (fixes #779)

parent a6e80f8a
No related branches found
No related tags found
No related merge requests found
Pipeline #391436 passed with warnings
......@@ -30,11 +30,11 @@
<input type="hidden" :value="composedDate" :name="attribute_name"/>
</template>
<b-input-group v-else-if="object_attribute.data_type=='boolean'">
<b-checkbox :checked="attribute_preset || false" :name="attribute_name"
<b-checkbox :checked="attribute_preset || false"
:unchecked-value="false"
v-model="checkbox_checked"
:disabled="(input_reducer instanceof Boolean && !input_reducer && !this.$store.state.expert) || make_null"></b-checkbox>
<b-input :name="attribute_name" v-if="checkbox_checked === false" value="false" :hidden="true"></b-input>
<input :name="attribute_name" :value="checkbox_checked.toString()" type="hidden"/>
</b-input-group>
<b-form-select :name="attribute_name" v-else-if="input_reducer instanceof Object" :value="attribute_preset">
<template v-slot:first>
......@@ -95,7 +95,7 @@ export default {
}
},
created() {
if (this.attribute_preset) {
if (this.attribute_preset && this.attribute_preset !== 'false') {
this.checkbox_checked = true
}
},
......
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