View Issue Details

This issue affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
20670Bug reportsImport/Exportpublic2026-09-11 09:47
ReporterFreda Assigned Toc_schmitz  
PrioritynoneSeverityminor 
Status resolvedResolutionfixed 
Product Version7.0.x 
Summary20670: PDF export displays file path instead of selected image for image-based multiple-choice answers
Description

When a survey question uses images as the answer options, the selected answer is not rendered as an image in the Print Answers / PDF export. Instead, the PDF displays the file path or filename of the selected image.

Steps To Reproduce

Steps to reproduce

Create or open a survey.
Add a image select Multiple choice question.
Configure the answer options to use images.
Enable participants to print answers after survey submission.
Activate the survey and select one or more image-based answer options as a participant.
Use Print Answers to generate the PDF.
Open the generated PDF.

Expected result

The selected image should be rendered/displayed in the generated PDF, rather than displaying its file path.

Actual result

The selected image answer is displayed as its file path/filename rather than the image itself.
/upload/surveys/.../images/example.jpg

TagsNo tags attached.
Attached Files
test-6-157367.pdf (105,551 bytes)
Bug heat2
Complete LimeSurvey version number (& build).
I will donate to the project if issue is resolvedNo
Story point estimate0
Browser
Database type & version.
Server OS (if known)
Webserver software & version (if known)
PHP Version.

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2026-09-11 09:47

administrator   ~85672

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

Related Changesets

LimeSurvey: master 469e2175

2026-09-11 09:47

c_schmitz

Committer: GitHub


Details Diff
Fixed issue 20670: PDF export displays file path instead of selected image for image-select question types (#5275) Affected Issues
20670
mod - application/config/internal.php Diff File
mod - application/helpers/sanitize_helper.php Diff File
mod - themes/survey/fruity_twentythree/views/subviews/printanswers/question_types/template_list-radio.twig Diff File
mod - themes/survey/fruity_twentythree/views/subviews/printanswers/question_types/template_multiple-opt.twig Diff File
mod - themes/survey/vanilla/views/subviews/printanswers/question_types/template_list-radio.twig Diff File
mod - themes/survey/vanilla/views/subviews/printanswers/question_types/template_multiple-opt.twig Diff File

Issue History

Date Modified Username Field Change
2026-09-04 14:05 Freda New Issue
2026-09-04 14:05 Freda File Added: test-6-157367.pdf
2026-09-04 14:05 Freda File Added: survey_archive_157367.lsa
2026-09-04 15:27 c_schmitz Assigned To => c_schmitz
2026-09-04 15:27 c_schmitz Status new => ready for code review
2026-09-11 09:47 c_schmitz Changeset attached => LimeSurvey master 469e2175
2026-09-11 09:47 c_schmitz Note Added: 85672
2026-09-11 09:47 c_schmitz Status ready for code review => resolved
2026-09-11 09:47 c_schmitz Resolution open => fixed
2026-09-11 09:47 c_schmitz Bug heat 0 => 2