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 @@ ...@@ -24,7 +24,7 @@
<div class="visible-fields"> <div class="visible-fields">
<div class="two fields"> <div class="two fields">
<div class="required field"> <div class="required field">
<label for="form.relation_type.id_for_label">{{ <label :for="form.relation_type.id_for_label">{{
form.relation_type.label form.relation_type.label
}}</label> }}</label>
<Dropdown <Dropdown
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
{{ form.relation_type.errors }} {{ form.relation_type.errors }}
</div> </div>
<div class="required field"> <div class="required field">
<label for="form.feature_to.id_for_label">{{ <label :for="form.feature_to.id_for_label">{{
form.feature_to.label form.feature_to.label
}}</label> }}</label>
<SearchFeature <SearchFeature
...@@ -106,7 +106,6 @@ export default { ...@@ -106,7 +106,6 @@ export default {
}, },
computed: { computed: {
selected_relation_type: { selected_relation_type: {
// getter // getter
get() { get() {
...@@ -138,7 +137,8 @@ export default { ...@@ -138,7 +137,8 @@ export default {
}, },
selectFeatureTo(e) { selectFeatureTo(e) {
this.form.feature_to.value = e; this.form.feature_to.value = e.feature_id;
this.updateStore();
}, },
updateStore() { updateStore() {
...@@ -146,7 +146,7 @@ export default { ...@@ -146,7 +146,7 @@ export default {
dataKey: this.linkedForm.dataKey, dataKey: this.linkedForm.dataKey,
relation_type: this.form.relation_type.value.value, relation_type: this.form.relation_type.value.value,
feature_to: { 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