Skip to content

Commit

Permalink
Fixed issue #13925: Unable to use QID SGQ … in validation equation tip
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Aug 1, 2018
1 parent 87654a2 commit 3e3b0b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/helpers/SurveyRuntimeHelper.php
Expand Up @@ -388,7 +388,7 @@ public function run($surveyid, $args)
$aGroup['aQuestions'][$qid]['mandatory'] = $qa[0]['mandatory'];
$aGroup['aQuestions'][$qid]['class'] = $this->getCurrentQuestionClasses($qid);
$aGroup['aQuestions'][$qid]['input_error_class'] = $qa[0]['input_error_class'];
$aGroup['aQuestions'][$qid]['valid_message'] = $qa[0]['valid_message'];
$aGroup['aQuestions'][$qid]['valid_message'] = LimeExpressionManager::ProcessString( $qa[0]['valid_message'] );
$aGroup['aQuestions'][$qid]['file_valid_message'] = $qa[0]['file_valid_message'];
$aGroup['aQuestions'][$qid]['man_message'] = $qa[0]['man_message'];
$aGroup['aQuestions'][$qid]['answer'] = LimeExpressionManager::ProcessString($qa[1], $qa[4], null, 3, 1, false, true, false);
Expand Down Expand Up @@ -754,11 +754,11 @@ private function checkQuotas()
/* quota submitted */
if ($this->sMove == 'confirmquota') {
checkCompletedQuota($this->iSurveyid);
}
}
/* quota submitted */
if ($this->sMove == 'returnfromquota') {
LimeExpressionManager::JumpTo($this->param['thisstep']);
}
}
}

/**
Expand Down

1 comment on commit 3e3b0b1

@Shnoulle
Copy link
Collaborator

@Shnoulle Shnoulle commented on 3e3b0b1 Aug 1, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it work, since EM already parse it :

$validTip = $LEM->ProcessString($stringToParse, $qid,NULL,1,1,false,false);

set here

$stringToParse .= Yii::app()->getController()->renderPartial('//survey/questions/question_help/em-tip', $tipsDatas, true);

Did you test ?

Please sign in to comment.