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

adapt extraForm to work with project-attributes id

parent 6b88018c
No related branches found
No related tags found
1 merge request!773REDMINE_ISSUE-19721|Ajouter des attributs dans les projets
...@@ -97,18 +97,18 @@ ...@@ -97,18 +97,18 @@
> >
<div <div
v-for="option in field.options" v-for="option in field.options"
:key="option" :key="option.id || option"
class="ui checkbox" class="ui checkbox"
> >
<input <input
:id="option" :id="option.id || option"
type="checkbox" type="checkbox"
:checked="field.value && field.value.includes(option)" :checked="field.value && field.value.includes(option.id || option)"
:name="option" :name="option.id || option"
@change="selectMultipleCheckbox" @change="selectMultipleCheckbox"
> >
<label :for="option"> <label :for="option.id || option">
{{ option }} {{ option.name || option }}
</label> </label>
</div> </div>
</div> </div>
...@@ -207,7 +207,7 @@ export default { ...@@ -207,7 +207,7 @@ export default {
set(newValue) { set(newValue) {
//* set the value selected in the dropdown //* set the value selected in the dropdown
if (this.useValueOnly) { if (this.useValueOnly) {
this.$emit('update:value', newValue); this.$emit('update:value', newValue.id || newValue);
} else { } else {
const newExtraForm = this.field; const newExtraForm = this.field;
newExtraForm['value'] = newValue; newExtraForm['value'] = newValue;
......
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