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

fix comment not sent

parent e64d1420
No related branches found
No related tags found
1 merge request!567REDMINE_ISSUE-17138 | Page signalement - Erreur à l'ajout commentaire
......@@ -233,14 +233,14 @@ export default {
if (this.validateForm()) {
featureAPI
.postComment({
featureId: this.currentFeature.feature_id,
featureId: this.currentFeature.feature_id || this.currentFeature.id,
comment: this.comment_form.comment.value,
})
.then((response) => {
if (response && this.comment_form.attachment_file.file) {
featureAPI
.postCommentAttachment({
featureId: this.currentFeature.feature_id,
featureId: this.currentFeature.feature_id || this.currentFeature.id,
file: this.comment_form.attachment_file.file,
fileName: this.comment_form.attachment_file.fileName,
title: this.comment_form.attachment_file.title,
......
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