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

fix regression on feature linked update

parent 3979eac0
No related branches found
No related tags found
2 merge requests!424version 3.1.0,!316REDMINE_ISSUE-13305
......@@ -24,7 +24,7 @@
<div class="visible-fields">
<div class="two fields">
<div class="required field">
<label for="form.relation_type.id_for_label">{{
<label :for="form.relation_type.id_for_label">{{
form.relation_type.label
}}</label>
<Dropdown
......@@ -35,7 +35,7 @@
{{ form.relation_type.errors }}
</div>
<div class="required field">
<label for="form.feature_to.id_for_label">{{
<label :for="form.feature_to.id_for_label">{{
form.feature_to.label
}}</label>
<SearchFeature
......@@ -106,7 +106,6 @@ export default {
},
computed: {
selected_relation_type: {
// getter
get() {
......@@ -138,7 +137,8 @@ export default {
},
selectFeatureTo(e) {
this.form.feature_to.value = e;
this.form.feature_to.value = e.feature_id;
this.updateStore();
},
updateStore() {
......@@ -146,7 +146,7 @@ export default {
dataKey: this.linkedForm.dataKey,
relation_type: this.form.relation_type.value.value,
feature_to: {
feature_id: this.form.feature_to.value.value,
feature_id: this.form.feature_to.value,
},
});
},
......
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