From e5892737766b277199faa5d2249fe1401fc923d2 Mon Sep 17 00:00:00 2001 From: Dillon Ngo Date: Fri, 10 Jan 2025 12:41:14 +0800 Subject: [PATCH] Admin Workflow - Fix Tested Issues --- .../ControllersLogic/UpdateNextQuestionV1AdminWFLogic.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Classes/Modules/Questionnaires/ControllersLogic/UpdateNextQuestionV1AdminWFLogic.php b/app/Classes/Modules/Questionnaires/ControllersLogic/UpdateNextQuestionV1AdminWFLogic.php index 5ee4cc6f..c5f5de9f 100644 --- a/app/Classes/Modules/Questionnaires/ControllersLogic/UpdateNextQuestionV1AdminWFLogic.php +++ b/app/Classes/Modules/Questionnaires/ControllersLogic/UpdateNextQuestionV1AdminWFLogic.php @@ -162,6 +162,10 @@ class UpdateNextQuestionV1AdminWFLogic extends AbstractControllerLogic //Get returned question (previous or next) $returnQuestion = $this->fetchNextQuestionQAProcessor->execute($request, $previousAnswer); + if($returnQuestion && $returnQuestion->is_start){ + $isNoGoingBack = 1; + } + //When a questionnaire ended, return back the first question if(is_null($returnQuestion)){ $returnQuestion = $this->fetchFirstQuestionQAProcessor->execute($request);