Skip to content

Commit

Permalink
Fixed issue #4472: Response export does not include Completed field
Browse files Browse the repository at this point in the history
Dev Other small fixes

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@8951 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Jul 17, 2010
1 parent 679a9ef commit 4b25dc8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
1 change: 0 additions & 1 deletion admin/exportresults.php
Expand Up @@ -51,7 +51,6 @@

//FIND OUT HOW MANY FIELDS WILL BE NEEDED - FOR 255 COLUMN LIMIT
$excesscols=createFieldMap($surveyid);
unset($excesscols['submitdate']);
$excesscols=array_keys($excesscols);


Expand Down
16 changes: 8 additions & 8 deletions common.php
Expand Up @@ -2262,14 +2262,6 @@ function createFieldMap($surveyid, $style='short', $force_refresh=false, $questi
return $globalfieldmap[$surveyid][$style][$clang->langcode];
}

$fieldmap["submitdate"]=array("fieldname"=>"submitdate", 'type'=>"submitdate", 'sid'=>$surveyid, "gid"=>"", "qid"=>"", "aid"=>"");
if ($style == "full")
{
$fieldmap["submitdate"]['title']="";
$fieldmap["submitdate"]['question']=$clang->gT("Date submitted");
$fieldmap["submitdate"]['group_name']="";
}

$fieldmap["id"]=array("fieldname"=>"id", 'sid'=>$surveyid, 'type'=>"id", "gid"=>"", "qid"=>"", "aid"=>"");
if ($style == "full")
{
Expand All @@ -2278,6 +2270,14 @@ function createFieldMap($surveyid, $style='short', $force_refresh=false, $questi
$fieldmap["id"]['group_name']="";
}

$fieldmap["submitdate"]=array("fieldname"=>"submitdate", 'type'=>"submitdate", 'sid'=>$surveyid, "gid"=>"", "qid"=>"", "aid"=>"");
if ($style == "full")
{
$fieldmap["submitdate"]['title']="";
$fieldmap["submitdate"]['question']=$clang->gT("Date submitted");
$fieldmap["submitdate"]['group_name']="";
}

$fieldmap["lastpage"]=array("fieldname"=>"lastpage", 'sid'=>$surveyid, 'type'=>"lastpage", "gid"=>"", "qid"=>"", "aid"=>"");
if ($style == "full")
{
Expand Down
Binary file modified images/token_manage.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion index.php
Expand Up @@ -153,7 +153,7 @@
if ($surveyid &&
$issurveyactive===false && $surveyexists &&
isset ($surveyPreview_require_Auth) &&
$surveyPreview_require_Auth === true)
$surveyPreview_require_Auth == true)
{
// admin session and permission have not already been imported
// for this particular survey
Expand Down

0 comments on commit 4b25dc8

Please sign in to comment.