Skip to content

Commit

Permalink
BUGFIX: CheckGroupForDisplay function was not working properly across…
Browse files Browse the repository at this point in the history
… multiple groups in group-by-group display. This bugfix supplied by Zoran Avtarovski fixes the bug

NEW FEATURE: You can now pass a value, as an answer to a question in the URL query string (by "FIELDNAME=VALUE", ie: 1X1X1=Jason) - minor modification to buildsurveysession()


git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@1254 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Oct 26, 2004
1 parent f7baad7 commit 6d938d7
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,8 @@ function checkgroupfordisplay($gid)
if ($cfieldname == $cvalue)
{
//This condition is met
if (!isset($distinctcqids[$row['cqid']]))
//Bugfix provided by Zoran Avtarovski
if (!isset($distinctcqids[$row['cqid']]) || $distinctcqids[$row['cqid']] == 0)
{
$distinctcqids[$row['cqid']]=1;
}
Expand Down Expand Up @@ -1243,6 +1244,15 @@ function buildsurveysession()
$conditions = "N";
}

//3(b) See if any of the insertarray values have been passed in the query URL
foreach($_SESSION['insertarray'] as $field)
{
if (isset($_GET[$field]))
{
$_SESSION[$field]=$_GET[$field];
}
}

//4. SESSION VARIABLE: fieldarray
//NOW WE'RE CREATING AN ARRAY CONTAINING EACH FIELD AND RELEVANT INFO
//ARRAY CONTENTS - [0]=questions.qid,
Expand Down

0 comments on commit 6d938d7

Please sign in to comment.