View Issue Details

This bug affects 2 person(s).
 20
IDProjectCategoryView StatusLast Update
13777Bug reportsImport/Exportpublic2024-08-22 13:22
Reporterdemedia Assigned Toollehar  
PrioritynoneSeveritypartial_block 
Status feedbackResolutionopen 
Product Version3.10.x 
Summary13777: "Text display" type questions won't show up in queXML PDF export
Description

There is a question type "Text display" to inserting simple texts between other questions.
On the normal survey it works as expected. However this type of questions are not displayed in PDF.

Steps To Reproduce
  1. Create a new survey
  2. Create a question with type "Text display"
  3. Export this survey under "Display / Export" -> "queXML PDF Export"
TagsNo tags attached.
Bug heat20
Complete LimeSurvey version number (& build)3.9.0+180604
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMySQL 5.5
Server OS (if known)Debian 8.10
Webserver software & version (if known)Apache 2.4
PHP Version7.1

Users monitoring this issue

rustler

Activities

demedia

demedia

2018-07-05 10:24

reporter   ~48454

Bump this issue to get attention. It looks like an old bug. See the following topic in the forum.

https://www.limesurvey.org/forum/design-issues/102678-quexml-pdf-export-of-text-display-bug

I would appreciate any feedback on this.
Thanks.

ollehar

ollehar

2021-03-10 16:51

administrator   ~63023

Hello demedia,
This should already be fixed in recent versions.
Can you please check if this issue still exists in the latest version of LimeSurvey and let us know?
Thank you!

rustler

rustler

2021-08-27 17:45

reporter   ~66156

Hi there,

I can confirm that the issue is still existing using the latest stable Limesurvey release (3.27.13+210823) but I haven`t checked version 5.x yet

rustler

rustler

2021-08-30 13:08

reporter   ~66176

Also not working for Limesurvey 5.1.5+210830

c_schmitz

c_schmitz

2021-09-08 10:03

administrator   ~66393

@demedia I check with version 5.1.8 and it works as expected. Can you confirm that?
If not can you please attach a 2-question sample survey and the faulty PDF`?

njbart

njbart

2021-09-21 13:19

reporter   ~66570

My recent experience with LimeSurvey Cloud, Version 3.27.16, has been that "Text display" type questions do show up in queXML PDF export, but all questions of this type are being moved to the beginning of the question group they appear in, more precisely: into the box that starts with "Part X: [title of question group]".

bcf

bcf

2024-08-22 13:22

reporter   ~80789

I encountered the same problem in 6.1
It does however seem to not be a bug but rather intentional.

in \limesurvey\application\helpers\export_helper.php

        //boilerplate questions convert to sectionInfo elements
        $Rows = App()->db->createCommand()
            ->select('*')
            ->from("{{questions}} q")
            ->join('{{question_l10ns}} ql', 'q.qid=ql.qid')
            ->where("q.sid=:sid AND q.gid=:gid AND type LIKE 'X' AND ql.language=:language", array(':sid' => $iSurveyID, ':gid' => $gid, ':language' => $quexmllang))
            ->order('question_order ASC')
            ->queryAll();

        foreach ($Rows as $RowQ) {
            // placeholder substitution
            $RowQ['question'] = templatereplace($RowQ['question'], $RowQReplacements);
            $sectionInfo = $dom->createElement("sectionInfo");
            $position = $dom->createElement("position", "before");
            $text = $dom->createElement("text", QueXMLCleanup($RowQ['question']));
            $administration = $dom->createElement("administration", "self");
            $sectionInfo->appendChild($position);
            $sectionInfo->appendChild($text);
            $sectionInfo->appendChild($administration);
            $section->appendChild($sectionInfo);
        }

Not sure why that is, maybe it has something todo with the quexml format?
Since we only needed the pdf file for printing, i removed this and the AND q.type NOT LIKE 'X' below so the questions are shown at the right positions in the pdf.

Issue History

Date Modified Username Field Change
2018-06-14 09:45 demedia New Issue
2018-07-05 10:24 demedia Note Added: 48454
2021-03-10 16:51 ollehar Assigned To => ollehar
2021-03-10 16:51 ollehar Status new => feedback
2021-03-10 16:51 ollehar Note Added: 63023
2021-08-27 17:45 rustler Note Added: 66156
2021-08-27 17:45 rustler Bug heat 4 => 6
2021-08-27 20:54 rustler Issue Monitored: rustler
2021-08-27 20:54 rustler Bug heat 6 => 8
2021-08-30 13:08 rustler Note Added: 66176
2021-09-08 10:03 c_schmitz Note Added: 66393
2021-09-08 10:03 c_schmitz Bug heat 8 => 10
2021-09-21 13:19 njbart Note Added: 66570
2021-09-21 13:19 njbart Bug heat 10 => 12
2021-09-21 13:19 guest Bug heat 12 => 18
2024-08-22 13:22 bcf Note Added: 80789
2024-08-22 13:22 bcf Bug heat 18 => 20