Skip to content

Commit

Permalink
Fixed issue #11867: Tip are not working, LIST drop-down/radio-button …
Browse files Browse the repository at this point in the history
…list

Dev: move Tips from quanda to expression manager
  • Loading branch information
LouisGac committed Dec 7, 2016
1 parent af9db1c commit 4ca6fec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 4 additions & 0 deletions application/helpers/expressions/em_manager_helper.php
Expand Up @@ -1385,6 +1385,7 @@ public function _CreateSubQLevelRelevanceAndValidationEqns($onlyThisQseq=NULL)
switch ($type)
{
case 'M': //NUMERICAL QUESTION TYPE
case 'L': //LIST drop-down/radio-button list
$validationEqn[$questionNum][] = array(
'qtype' => $type,
'type' => 'default',
Expand Down Expand Up @@ -3139,6 +3140,9 @@ public function _CreateSubQLevelRelevanceAndValidationEqns($onlyThisQseq=NULL)
// Default validation qtip without attribute
switch ($type)
{
case 'L':
$qtips['default']=$this->gT('Choose one of the following answers');
break;
case 'M':
$qtips['default']=$this->gT('Check any that apply');
break;
Expand Down
5 changes: 0 additions & 5 deletions application/helpers/qanda_helper.php
Expand Up @@ -160,11 +160,6 @@ function retrieveAnswers($ia)

case 'L': //LIST drop-down/radio-button list
$values = do_list_radio($ia);
if ($aQuestionAttributes['hide_tip']==0)
{
$question_text['help'] = $message = gT('Choose one of the following answers');
$qtitle .= doRender('/survey/question_help/help', array('message'=>$message, 'classes'=>''), true);
}
break;

case '!': //List - dropdown
Expand Down

0 comments on commit 4ca6fec

Please sign in to comment.