View Issue Details

This issue affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
15734Bug reportsPrint Viewpublic2026-10-07 23:13
ReporterMazi Assigned Toc_schmitz  
PrioritynoneSeverityminor 
Status resolvedResolutionfixed 
Product Version3.21.3 
Summary15734: Setting "printanswershonorsconditions" leads to wrong details at "Print answers" screen when changing the setting
Description

The setting "printanswershonorsconditions" at config-defaults.php should work like this:
If set to 1, only relevant answers to questions can be printed by user. If set to 0, also questions not shown are printed.

But if I change the setting from 1 (seems to be the default) to 0, the "Print answers" screen doesn't list any questions when testing with my 2 question test survey and the vanilla theme.

Steps To Reproduce
  1. Import the attached survey.

  2. Activate and start the survey.

  3. After filling in data, call the "Print answers" screen. -> Things show up fine.

  4. Set "printanswershonorsconditions" to 0, repeat step #3 -> No questions are shown though q1 is a mandatory question and must have been answered.

TagsNo tags attached.
Attached Files
Bug heat2
Complete LimeSurvey version number (& build)3.21.4+200108
I will donate to the project if issue is resolvedNo
BrowserChrome
Database type & versionMySQL 5
Server OS (if known)Ubuntu 14 TLS
Webserver software & version (if known)Apache 2
PHP Version7.2.26

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2026-10-07 23:13

administrator   ~86233

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=40700

Related Changesets

LimeSurvey: master 3500b5be

2026-10-07 23:13

c_schmitz


Details Diff
Fixed issue 15734: With "printanswershonorsconditions" set to 0 the print answers page showed no questions at all
Dev Inverted relevance checks in SurveyDynamic::getPrintAnswersArray()/getQuestionArray() skipped everything when conditions were not honored
Affected Issues
15734
mod - application/models/SurveyDynamic.php Diff File
add - tests/data/surveys/limesurvey_survey_381354_print_answers_conditions.lss Diff File
add - tests/unit/models/PrintAnswersArrayTest.php Diff File

Issue History

Date Modified Username Field Change
2020-01-17 13:01 Mazi New Issue
2020-01-17 13:01 Mazi File Added: limesurvey_survey_381354_print answers test.lss
2020-01-22 16:07 cdorin Assigned To => cdorin
2020-01-22 16:07 cdorin Status new => assigned
2021-02-04 10:15 cdorin Status assigned => new
2021-02-07 12:27 cdorin Assigned To cdorin =>
2021-02-07 12:27 cdorin Status new => acknowledged
2021-02-07 12:27 cdorin Description Updated
2021-02-07 12:27 cdorin Steps to Reproduce Updated
2026-10-07 23:13 c_schmitz Changeset attached => LimeSurvey master 3500b5be
2026-10-07 23:13 c_schmitz Note Added: 86233
2026-10-07 23:13 c_schmitz Assigned To => c_schmitz
2026-10-07 23:13 c_schmitz Status acknowledged => resolved
2026-10-07 23:13 c_schmitz Resolution open => fixed
2026-10-07 23:13 c_schmitz Bug heat 0 => 2