Merge branch 'dillon/74-admin-workflow' into vapor/development

This commit is contained in:
Dillon Ngo
2025-01-10 12:41:49 +08:00
@@ -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);