Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed issue #8875: 'No answer' not available in Dual Scale dropdown e…
…ven when 'No answer' is set to show
  • Loading branch information
c-schmitz committed Mar 20, 2014
1 parent 5378208 commit d9bd41d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions application/helpers/qanda_helper.php
Expand Up @@ -50,14 +50,22 @@
*/
function setNoAnswerMode($thissurvey)
{
if (getGlobalSetting('shownoanswer') > 0 && $thissurvey['shownoanswer'] != 'N')
if (getGlobalSetting('shownoanswer') == 1)
{
define('SHOW_NO_ANSWER', 1);
}
else
elseif (getGlobalSetting('shownoanswer') == 0)
{
define('SHOW_NO_ANSWER', 0);
}
elseif ($thissurvey['shownoanswer'] == 'N')
{
define('SHOW_NO_ANSWER', 0);
}
else
{
define('SHOW_NO_ANSWER', 1);
}
}

/**
Expand Down

0 comments on commit d9bd41d

Please sign in to comment.