View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
05590Bug reportsPrint Viewpublic2012-01-24 14:42
Reporteruser16048Assigned Totpartner  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.91+ 
Summary05590: 1980-01-01 in printview
Description

I created an anonymous survey using "Anonymized responses?" with "yes". After completing the survey the print page was shown.
Date:
"Datum Abgeschickt 1980-01-01 00:00:00"

I think that doesn't really help, there should be a better way of handling the date issue with anonymous surveys.

Steps To Reproduce
  • Create new survey with "Anonymized responses?: Yes" and "Participants may print answers?: Yes"
  • Complete the Survey
  • show printview page
Additional Information

Possible sollutions:

1) Remove datestamp from printview
2) Use "now" datestamp to show current date/time

TagsNo tags attached.
Attached Files
bug_05590_v1.patch (1,132 bytes)   
Index: printanswers.php
===================================================================
--- printanswers.php	(revision 11406)
+++ printanswers.php	(working copy)
@@ -154,6 +154,7 @@
     {
         $surveytable = db_table_name("survey_".$actrow['sid']);
         $surveyname = "{$actrow['surveyls_title']}";
+        $anonymized = $actrow['anonymized'];
     }
 }
 
@@ -220,6 +221,21 @@
             $printoutput .= "\t<tr class='printanswersquestionhead'><td  colspan='2'>{$fname[0]}</td></tr>\n";
         }
     }
+    elseif ($sFieldname=='submitdate')
+    {
+        if($anonymized != 'Y')
+        {
+           if(isset($_POST['printableexport']))
+           {
+               $pdf->intopdf(FlattenText($fname[0].$fname[1],true).": ".$fname[2]);
+               $pdf->ln(2);
+           }
+           else
+           {
+               $printoutput .= "\t<tr class='printanswersquestion'><td>{$fname[0]} {$fname[1]} {$sFieldname}</td><td class='printanswersanswertext'>{$fname[2]}</td></tr>";
+           }
+	    }
+    }
     else
     {
         if(isset($_POST['printableexport']))
bug_05590_v1.patch (1,132 bytes)   
Bug heat4
Complete LimeSurvey version number (& build)11343
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMySQL Community Server 5.5.8
Server OS (if known)Windows Server 2008 R2 Standard
Webserver software & version (if known)Apache 2.2.17
PHP Version5.2.17
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

tpartner

tpartner

2011-11-21 18:04

partner   ~16701

I think removing the datestamp is appropriate.

Carsten please see my patch "bug_05590_v1.patch".

c_schmitz

c_schmitz

2012-01-23 17:07

administrator   ~16922

Tony, looks good. Please apply across /limesurvey, /limesurvey_dev and /limesurvey_yii

tpartner

tpartner

2012-01-24 12:53

partner   ~16935

I've applied it to /limesurvey, /limesurvey_dev and /limesurvey_yii but can't test Yii at the moment due to unrelated PHP errors.

tpartner

tpartner

2012-01-24 14:42

partner   ~16938

Fixed in revision 12173

Issue History

Date Modified Username Field Change
2011-11-21 10:34 user16048 New Issue
2011-11-21 18:02 tpartner File Added: bug_05590_v1.patch
2011-11-21 18:04 tpartner Assigned To => c_schmitz
2011-11-21 18:04 tpartner Status new => assigned
2011-11-21 18:04 tpartner Note Added: 16701
2011-11-21 18:04 tpartner Status assigned => feedback
2012-01-23 17:06 c_schmitz Assigned To c_schmitz => tpartner
2012-01-23 17:06 c_schmitz Status feedback => assigned
2012-01-23 17:07 c_schmitz Note Added: 16922
2012-01-24 12:53 tpartner Note Added: 16935
2012-01-24 14:42 tpartner Note Added: 16938
2012-01-24 14:42 tpartner Status assigned => resolved
2012-01-24 14:42 tpartner Resolution open => fixed
2012-01-24 14:42 tpartner Status resolved => closed