From 07048fe24133502b4197e5f68e349b79825fe03b Mon Sep 17 00:00:00 2001 From: Gabriel Jenik Date: Tue, 17 Aug 2021 10:23:45 -0300 Subject: [PATCH] Fixed issue #17333: Soft mandatory show as mandatory : produces an incomprehensible form (#1997) - Different error message for soft mandatory Co-authored-by: encuestabizdevgit --- application/helpers/expressions/em_manager_helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/helpers/expressions/em_manager_helper.php b/application/helpers/expressions/em_manager_helper.php index 0a785b8cec9..2bdea33643d 100644 --- a/application/helpers/expressions/em_manager_helper.php +++ b/application/helpers/expressions/em_manager_helper.php @@ -6091,7 +6091,7 @@ function ($sqRankAnwsers) { $mandatoryTip = App()->twigRenderer->renderPartial( '/survey/questions/question_help/mandatory_tip.twig', [ - 'sMandatoryText' => $LEM->gT('This question is mandatory'), + 'sMandatoryText' => $qInfo['mandatory'] == 'S' ? $LEM->gT("Please notice you haven't answered this question. Still, you can continue without answering.") : $LEM->gT('This question is mandatory'), 'part' => 'initial', 'qInfo' => $qInfo ]