View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 05590 | Bug reports | Print View | public | 2011-11-21 10:34 | 2012-01-24 14:42 |
| Reporter | Assigned To | tpartner | |||
| Priority | normal | Severity | minor | ||
| Status | closed | Resolution | fixed | ||
| Product Version | 1.91+ | ||||
| Summary | 05590: 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. I think that doesn't really help, there should be a better way of handling the date issue with anonymous surveys. | ||||
| Steps To Reproduce |
| ||||
| Additional Information | Possible sollutions: 1) Remove datestamp from printview | ||||
| Tags | No 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 heat | 4 | ||||
| Complete LimeSurvey version number (& build) | 11343 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | |||||
| Database type & version | MySQL Community Server 5.5.8 | ||||
| Server OS (if known) | Windows Server 2008 R2 Standard | ||||
| Webserver software & version (if known) | Apache 2.2.17 | ||||
| PHP Version | 5.2.17 | ||||
| Git branch / Pull Request URL | |||||
|
I think removing the datestamp is appropriate. Carsten please see my patch "bug_05590_v1.patch". |
|
|
Tony, looks good. Please apply across /limesurvey, /limesurvey_dev and /limesurvey_yii |
|
|
I've applied it to /limesurvey, /limesurvey_dev and /limesurvey_yii but can't test Yii at the moment due to unrelated PHP errors. |
|
|
Fixed in revision 12173 |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2011-11-21 10:34 |
|
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 |