Skip to content

Commit

Permalink
Dev: Fixed problems caused by changed behaviour of incompleteAnsFilte…
Browse files Browse the repository at this point in the history
…rstate()

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@7045 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
mennodekker committed Jun 9, 2009
1 parent d9e8aaf commit f350d10
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
11 changes: 10 additions & 1 deletion admin/listcolumn.php
Expand Up @@ -44,7 +44,16 @@
$query .= " AND ".auto_unescape(urldecode($sql));
}

if (incompleteAnsFilterstate() === true) {$query .= " AND submitdate is not null";}
switch (incompleteAnsFilterstate()) {
case 'inc':
//Inclomplete answers only
$query .= ' WHERE submitdate is null ';
break;
case 'filter':
//Inclomplete answers only
$query .= ' WHERE submitdate is not null ';
break;
}

if ($order == "alpha")
{
Expand Down
9 changes: 6 additions & 3 deletions config-defaults.php
Expand Up @@ -157,9 +157,12 @@
//
// $filterout_incomplete_answers
// * default behaviour of LimeS regarding answer records with no submitdate
// * can be overwritten by module parameters
// ('Filter-Out incomplete answers' checkbox when implemented)
$filterout_incomplete_answers = true;
// * can be overwritten by module parameters choose one of the following://
// * filter: Show only complete answers
// * show: Show both complete and incomplete answers
// * incomplete: Show only incomplete answers

$filterout_incomplete_answers = 'show';
//
// $stripQueryFromRefurl (default is false)
// * default behaviour is to record the full referer url when requested
Expand Down

0 comments on commit f350d10

Please sign in to comment.