View Issue Details

This bug affects 1 person(s).
 10
IDProjectCategoryView StatusLast Update
05508Bug reportsPrint Viewpublic2012-03-14 21:08
Reportermisterdot Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.91+ 
Fixed in Version1.91+ 
Summary05508: $printanswershonorsconditions settings doesn't work - all questions are shown in Print Answers page
Description

Setting $printanswershonorsconditions to 1 or 0 has no effect. All questions are printed on the printanswers.php page.

Steps To Reproduce
  1. Add this line to your config.php file:
    $printanswershonorsconditions = 1; // Set to 1 if you want the participant printanswers feature to show only the questions that were displayed survey branching-logic

  2. Import the attached survey and activate it.

  3. Start the survey

  4. Answer "No" at the first question. It should show two additional questions based on the No condition.

  5. Finish the survey and call the printanswer.php script -> the overview shows all five questions even though the Yes conditional path should have been skipped.

Additional Information

See this forum post:
https://www.limesurvey.org/en/forum/can-i-do-this-with-limesurvey/66955-conditional-print-answers
This issue was previously reported in bug 04656.

TagsNo tags attached.
Attached Files
conditional_sample.lss (30,557 bytes)
conditional_sample1.lss (403,475 bytes)
Bug heat10
Complete LimeSurvey version number (& build)11026
I will donate to the project if issue is resolvedYes
Browser
Database type & versionMySQL 5.1.52
Server OS (if known)CentOS 6
Webserver software & version (if known)Apache 2.2.15
PHP Version5.3.2

Users monitoring this issue

misterdot

Activities

misterdot

misterdot

2011-10-12 17:36

reporter   ~16408

Please assign to lemeur.

Mazi

Mazi

2011-10-12 17:59

updater   ~16409

I can reproduce the problem. The $printanswershonorsconditions setting seems to have no effect.

lemeur

lemeur

2011-10-15 18:43

developer   ~16429

Carsten, the feature was removed during revision 9648.

r9648 | c_schmitz | 2011-01-07 14:06:39 +0100 (Fri, 07 Jan 2011) | 1 line
Dev Putting back changes lost due to roll-back

The issue is that now printasnwers.php uses the result from the aGetFullResponseTable function which doesn't return the QID.

I don't master this piece of code, and it is also used in index.php so I prefer not to change it.

I see 2 possibilities: either you return the QID in aGetFullResponseTable of you return the "was_hidden" boolean by calling chekcQuestionForDisplay($qid) directly inside aGetFullResponseTable.

Thibault

c_schmitz

c_schmitz

2011-10-19 16:10

administrator   ~16473

Fixed in rev 11208

misterdot

misterdot

2011-10-24 17:15

reporter   ~16506

I've installed build 11232, which has this bug fix. The issue is resolved for the simple test survey, but all questions are still printed in my longer survey (attached as conditional_sample1.lss) with $printanswershonorsconditions set to 1.

c_schmitz

c_schmitz

2011-11-08 13:07

administrator   ~16615

Fixed in rev 11336

c_schmitz

c_schmitz

2011-11-08 18:56

administrator   ~16630

New version released.

Related Changesets

LimeSurvey: Yii 4ec26f3b

2011-10-19 07:00:30

c_schmitz

Details Diff
Fixed issue 05323: .missing class added in answered filtered array question "Show question index / allow jumping" modality - patch by flocs
Fixed issue 05508: $printanswershonorsconditions settings doesn't work - all questions are shown in Print Answers page -
Dev printanswershonorsconditions config variable is now completely removed and Print answers always honors conditions

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_ci@11207 b72ed6b6-b9f8-46b5-92b4-906544132732
Affected Issues
05323, 05508
mod - application/config/lsconfig.php Diff File
mod - application/controllers/printanswers.php Diff File
mod - application/helpers/common_helper.php Diff File

LimeSurvey: Yii ddc63dac

2011-11-08 04:06:48

c_schmitz

Details Diff
Fixed issue 05508: $printanswershonorsconditions settings doesn't work - all questions are shown in Print Answers page

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_ci@11335 b72ed6b6-b9f8-46b5-92b4-906544132732
Affected Issues
05508
mod - application/helpers/common_helper.php Diff File
mod - application/helpers/frontend_helper.php Diff File

Issue History

Date Modified Username Field Change
2011-10-12 17:35 misterdot New Issue
2011-10-12 17:35 misterdot File Added: conditional_sample.lss
2011-10-12 17:36 misterdot Note Added: 16408
2011-10-12 17:37 misterdot Issue Monitored: misterdot
2011-10-12 17:58 Mazi Assigned To => lemeur
2011-10-12 17:58 Mazi Status new => assigned
2011-10-12 17:59 Mazi Note Added: 16409
2011-10-15 18:40 lemeur Assigned To lemeur => c_schmitz
2011-10-15 18:43 lemeur Note Added: 16429
2011-10-19 16:10 c_schmitz Note Added: 16473
2011-10-19 16:10 c_schmitz Status assigned => resolved
2011-10-19 16:10 c_schmitz Fixed in Version => 1.91+
2011-10-19 16:10 c_schmitz Resolution open => fixed
2011-10-24 17:12 misterdot File Added: conditional_sample1.lss
2011-10-24 17:13 misterdot Note View State: 16408: private
2011-10-24 17:15 misterdot Note Added: 16506
2011-10-24 17:16 misterdot Note View State: 16408: public
2011-10-24 17:18 misterdot Status resolved => feedback
2011-10-24 17:18 misterdot Resolution fixed => reopened
2011-10-24 17:26 Mazi Status feedback => assigned
2011-11-08 13:07 c_schmitz Note Added: 16615
2011-11-08 13:07 c_schmitz Status assigned => resolved
2011-11-08 13:07 c_schmitz Resolution reopened => fixed
2011-11-08 18:56 c_schmitz Note Added: 16630
2011-11-08 18:56 c_schmitz Status resolved => closed
2012-03-14 21:08 c_schmitz Changeset attached => Import 2012-03-09 13:30:34 Yii ddc63dac
2012-03-14 21:08 c_schmitz Changeset attached => Import 2012-03-09 13:30:34 Yii 4ec26f3b
2021-08-02 19:33 guest Bug heat 8 => 10