Skip to content

Commit

Permalink
Fixed issue #12347: $select_show_hide is never defined
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Apr 26, 2017
1 parent df535e5 commit 5f2a7af
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions application/helpers/qanda_helper.php
Expand Up @@ -1340,6 +1340,7 @@ function do_list_dropdown($ia)
$_prefix = '';

$value = $_SESSION['survey_'.Yii::app()->getConfig('surveyID')][$ia[1]];
$select_show_hide = (isset($other) && $other=='Y')?' showhideother(this.name, this.value);':'';
$sOptions = '';

// If no answer previously selected
Expand Down Expand Up @@ -3193,10 +3194,10 @@ function do_multiplenumeric($ia)
'prefix' => $prefix,
'suffix' => $suffix,
'sInputContainerWidth' => $sInputContainerWidth,
'tiwidth' => $tiwidth,
'tiwidth' => $tiwidth,
'inputsize' => $inputsize,
'myfname' => $myfname,
'dispVal' => htmlspecialchars($sValue),
'dispVal' => htmlspecialchars($sValue),
'maxlength' => $maxlength,
'labelText' => $labelText,
'integeronly'=> $integeronly,
Expand Down

0 comments on commit 5f2a7af

Please sign in to comment.