diff --git a/app/Classes/Modules/Questionnaires/ControllersLogic/UpdateNextQuestionV1AdminWFLogic.php b/app/Classes/Modules/Questionnaires/ControllersLogic/UpdateNextQuestionV1AdminWFLogic.php index c5f5de9f..225e33e6 100644 --- a/app/Classes/Modules/Questionnaires/ControllersLogic/UpdateNextQuestionV1AdminWFLogic.php +++ b/app/Classes/Modules/Questionnaires/ControllersLogic/UpdateNextQuestionV1AdminWFLogic.php @@ -165,6 +165,9 @@ class UpdateNextQuestionV1AdminWFLogic extends AbstractControllerLogic if($returnQuestion && $returnQuestion->is_start){ $isNoGoingBack = 1; } + else if($returnQuestion && $returnQuestion->is_start === 0 && $returnQuestion && $returnQuestion->is_end === 0){ + $isNoGoingBack = 0; + } //When a questionnaire ended, return back the first question if(is_null($returnQuestion)){ diff --git a/resources/assets/vue/components/general/forms/AdminWorkFlowFormComponent.vue b/resources/assets/vue/components/general/forms/AdminWorkFlowFormComponent.vue index e9d4af0e..a24a819b 100644 --- a/resources/assets/vue/components/general/forms/AdminWorkFlowFormComponent.vue +++ b/resources/assets/vue/components/general/forms/AdminWorkFlowFormComponent.vue @@ -280,7 +280,9 @@
- +
@@ -470,6 +472,8 @@ if(this.question.is_previous && this.question.answer){ this.externalApiResponse = { data: JSON.parse(this.question.answer.question_metadata) }; + this.answer = this.question.answer.answer; + this.answerId = this.question.answer.answer_option_id; } else { if(this.question && this.question.url){