Skip to content

Commit

Permalink
Fixed issue #11867: In the multiple choice question, tip does not app…
Browse files Browse the repository at this point in the history
…ear even the HIDE_TIP option is OFF in advance settings of the question.
  • Loading branch information
LouisGac committed Dec 6, 2016
1 parent 7434346 commit 694f3e6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
13 changes: 13 additions & 0 deletions application/helpers/expressions/em_manager_helper.php
Expand Up @@ -1384,6 +1384,16 @@ public function _CreateSubQLevelRelevanceAndValidationEqns($onlyThisQseq=NULL)
// Default validation for question type
switch ($type)
{
case 'M': //NUMERICAL QUESTION TYPE
$validationEqn[$questionNum][] = array(
'qtype' => $type,
'type' => 'default',
'class' => 'default',
'eqn' => '',
'qid' => $questionNum,
);
break;

case 'N': //NUMERICAL QUESTION TYPE
if ($hasSubqs) {
$subqs = $qinfo['subqs'];
Expand Down Expand Up @@ -3129,6 +3139,9 @@ public function _CreateSubQLevelRelevanceAndValidationEqns($onlyThisQseq=NULL)
// Default validation qtip without attribute
switch ($type)
{
case 'M':
$qtips['default']=$this->gT('Check any that apply');
break;
case 'N':
$qtips['default']=$this->gT("Only numbers may be entered in this field.");
break;
Expand Down
5 changes: 0 additions & 5 deletions application/helpers/qanda_helper.php
Expand Up @@ -218,11 +218,6 @@ function retrieveAnswers($ia)
{
$maxansw=trim($aQuestionAttributes["max_answers"]);
$minansw=trim($aQuestionAttributes["min_answers"]);
if (!($maxansw || $minansw))
{
$question_text['help'] = $message = gT('Check any that apply');
$qtitle .= doRender('/survey/question_help/help', array('message'=>$message, 'classes'=>''), true);
}
}
break;

Expand Down

0 comments on commit 694f3e6

Please sign in to comment.