Skip to content

Commit

Permalink
Fixes: 0001266: Conditional Grouping
Browse files Browse the repository at this point in the history
This problem only happens in group by group mode when the condition is based in a multiple options (with or without comments) question type that is presented in the third page (second page with questions) and only when the survey is active.

This is because the default values for questions is NULL and isset($_SESSION[$fieldname]) evaluates to false even if $_SESSION[$fieldname] is set, but to a NULL value.

This don't happend if the multiple option question is presented in the firs page with questions, because save.php sets $_SESSION[$fieldname] to "".

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/stable_plus@3344 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
Gustavo San Roman committed Oct 6, 2007
1 parent 8056234 commit 14d1a22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Expand Up @@ -546,10 +546,10 @@ function checkgroupfordisplay($gid)
// For multiple choice type questions, the "answer" value will be "Y"
// if selected, the fieldname will have the answer code appended.
$fieldname=$row['cfieldname'].$row['value'];
$cvalue="Y";
if (isset($_SESSION[$fieldname]))
{
$cfieldname=$_SESSION[$fieldname];
$cvalue="Y";
}
}
else
Expand Down

0 comments on commit 14d1a22

Please sign in to comment.