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 @@
>
<div
v-for="option in field.options"
:key="option"
:key="option.id || option"
class="ui checkbox"
>
<input
:id="option"
:id="option.id || option"
type="checkbox"
:checked="field.value && field.value.includes(option)"
:name="option"
:checked="field.value && field.value.includes(option.id || option)"
:name="option.id || option"
@change="selectMultipleCheckbox"
>
<label :for="option">
{{ option }}
<label :for="option.id || option">
{{ option.name || option }}
</label>
</div>
</div>
......@@ -207,7 +207,7 @@ export default {
set(newValue) {
//* set the value selected in the dropdown
if (this.useValueOnly) {
this.$emit('update:value', newValue);
this.$emit('update:value', newValue.id || newValue);
} else {
const newExtraForm = this.field;
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