View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
17437Bug reportsSurvey takingpublic2026-10-29 20:52
ReporterMazi Assigned Toc_schmitz  
PrioritynoneSeverityminor 
Status resolvedResolutionfixed 
Product Version3.25.20 
Summary17437: Prefix missing for total value at multi numeric question
Description

When setting a prefix for multi numeric questions, this is shown for all question details besides the "total" row. The item at that row has CSS class "hidden" assigned accidentally and thus is not showing, see screenshot and https://github.com/LimeSurvey/LimeSurvey/blob/6437c998731e1e79da24c394ef205444cfa75cdf/application/views/survey/questions/answer/multiplenumeric/rows/dynamic.twig#L44

Steps To Reproduce

Import the attached question into an english survey.
Run the preview.

TagsNo tags attached.
Attached Files
image.png (114,702 bytes)
limesurvey_question_690.lsq (7,727 bytes)   
<?xml version="1.0" encoding="UTF-8"?>
<document>
 <LimeSurveyDocType>Question</LimeSurveyDocType>
 <DBVersion>365</DBVersion>
 <languages>
  <language>en</language>
 </languages>
 <questions>
  <fields>
   <fieldname>qid</fieldname>
   <fieldname>parent_qid</fieldname>
   <fieldname>sid</fieldname>
   <fieldname>gid</fieldname>
   <fieldname>type</fieldname>
   <fieldname>title</fieldname>
   <fieldname>question</fieldname>
   <fieldname>preg</fieldname>
   <fieldname>help</fieldname>
   <fieldname>other</fieldname>
   <fieldname>mandatory</fieldname>
   <fieldname>question_order</fieldname>
   <fieldname>language</fieldname>
   <fieldname>scale_id</fieldname>
   <fieldname>same_default</fieldname>
   <fieldname>relevance</fieldname>
   <fieldname>modulename</fieldname>
  </fields>
  <rows>
   <row>
    <qid><![CDATA[690]]></qid>
    <parent_qid><![CDATA[0]]></parent_qid>
    <sid><![CDATA[562187]]></sid>
    <gid><![CDATA[49]]></gid>
    <type><![CDATA[K]]></type>
    <title><![CDATA[Q14]]></title>
    <question><![CDATA[If you had an additional $100, how would you allocate the funds among the types of amenities listed below?<em> [Please be sure your total adds up to $100.]</em>]]></question>
    <preg/>
    <help/>
    <other><![CDATA[N]]></other>
    <mandatory><![CDATA[N]]></mandatory>
    <question_order><![CDATA[5]]></question_order>
    <language><![CDATA[en]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance><![CDATA[1]]></relevance>
   </row>
  </rows>
 </questions>
 <subquestions>
  <fields>
   <fieldname>qid</fieldname>
   <fieldname>parent_qid</fieldname>
   <fieldname>sid</fieldname>
   <fieldname>gid</fieldname>
   <fieldname>type</fieldname>
   <fieldname>title</fieldname>
   <fieldname>question</fieldname>
   <fieldname>preg</fieldname>
   <fieldname>help</fieldname>
   <fieldname>other</fieldname>
   <fieldname>mandatory</fieldname>
   <fieldname>question_order</fieldname>
   <fieldname>language</fieldname>
   <fieldname>scale_id</fieldname>
   <fieldname>same_default</fieldname>
   <fieldname>relevance</fieldname>
   <fieldname>modulename</fieldname>
  </fields>
  <rows>
   <row>
    <qid><![CDATA[893]]></qid>
    <parent_qid><![CDATA[690]]></parent_qid>
    <sid><![CDATA[562187]]></sid>
    <gid><![CDATA[49]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[01]]></title>
    <question><![CDATA[Reinvest in existing trail system]]></question>
    <other><![CDATA[N]]></other>
    <mandatory><![CDATA[N]]></mandatory>
    <question_order><![CDATA[1]]></question_order>
    <language><![CDATA[en]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance><![CDATA[1]]></relevance>
   </row>
   <row>
    <qid><![CDATA[894]]></qid>
    <parent_qid><![CDATA[690]]></parent_qid>
    <sid><![CDATA[562187]]></sid>
    <gid><![CDATA[49]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[02]]></title>
    <question><![CDATA[Add new park furniture (benches, picnic tables, garbage cans)]]></question>
    <other><![CDATA[N]]></other>
    <mandatory><![CDATA[N]]></mandatory>
    <question_order><![CDATA[2]]></question_order>
    <language><![CDATA[en]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance><![CDATA[1]]></relevance>
   </row>
   <row>
    <qid><![CDATA[895]]></qid>
    <parent_qid><![CDATA[690]]></parent_qid>
    <sid><![CDATA[562187]]></sid>
    <gid><![CDATA[49]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[03]]></title>
    <question><![CDATA[Reinvest in existing parks (e.g., playgrounds, shelters, sports fields)]]></question>
    <other><![CDATA[N]]></other>
    <mandatory><![CDATA[N]]></mandatory>
    <question_order><![CDATA[3]]></question_order>
    <language><![CDATA[en]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance><![CDATA[1]]></relevance>
   </row>
   <row>
    <qid><![CDATA[896]]></qid>
    <parent_qid><![CDATA[690]]></parent_qid>
    <sid><![CDATA[562187]]></sid>
    <gid><![CDATA[49]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[04]]></title>
    <question><![CDATA[Develop new trails (increasing connectivity/accessibility)]]></question>
    <other><![CDATA[N]]></other>
    <mandatory><![CDATA[N]]></mandatory>
    <question_order><![CDATA[4]]></question_order>
    <language><![CDATA[en]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance><![CDATA[1]]></relevance>
   </row>
   <row>
    <qid><![CDATA[897]]></qid>
    <parent_qid><![CDATA[690]]></parent_qid>
    <sid><![CDATA[562187]]></sid>
    <gid><![CDATA[49]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[05]]></title>
    <question><![CDATA[Develop new parks or add new park amenities]]></question>
    <other><![CDATA[N]]></other>
    <mandatory><![CDATA[N]]></mandatory>
    <question_order><![CDATA[5]]></question_order>
    <language><![CDATA[en]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance><![CDATA[1]]></relevance>
   </row>
   <row>
    <qid><![CDATA[898]]></qid>
    <parent_qid><![CDATA[690]]></parent_qid>
    <sid><![CDATA[562187]]></sid>
    <gid><![CDATA[49]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[06]]></title>
    <question><![CDATA[Develop new sports fields (e.g., softball, soccer, baseball, etc.)]]></question>
    <other><![CDATA[N]]></other>
    <mandatory><![CDATA[N]]></mandatory>
    <question_order><![CDATA[6]]></question_order>
    <language><![CDATA[en]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance><![CDATA[1]]></relevance>
   </row>
   <row>
    <qid><![CDATA[899]]></qid>
    <parent_qid><![CDATA[690]]></parent_qid>
    <sid><![CDATA[562187]]></sid>
    <gid><![CDATA[49]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[07]]></title>
    <question><![CDATA[Develop new court sports (e.g., bocce ball, pickleball, etc.)]]></question>
    <other><![CDATA[N]]></other>
    <mandatory><![CDATA[N]]></mandatory>
    <question_order><![CDATA[7]]></question_order>
    <language><![CDATA[en]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance><![CDATA[1]]></relevance>
   </row>
   <row>
    <qid><![CDATA[900]]></qid>
    <parent_qid><![CDATA[690]]></parent_qid>
    <sid><![CDATA[562187]]></sid>
    <gid><![CDATA[49]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[08]]></title>
    <question><![CDATA[Other]]></question>
    <other><![CDATA[N]]></other>
    <mandatory><![CDATA[N]]></mandatory>
    <question_order><![CDATA[8]]></question_order>
    <language><![CDATA[en]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance><![CDATA[1]]></relevance>
   </row>
  </rows>
 </subquestions>
 <question_attributes>
  <fields>
   <fieldname>qid</fieldname>
   <fieldname>attribute</fieldname>
   <fieldname>value</fieldname>
   <fieldname>language</fieldname>
  </fields>
  <rows>
   <row>
    <qid><![CDATA[690]]></qid>
    <attribute><![CDATA[equals_num_value]]></attribute>
    <value><![CDATA[100]]></value>
   </row>
   <row>
    <qid><![CDATA[690]]></qid>
    <attribute><![CDATA[maximum_chars]]></attribute>
    <value><![CDATA[3]]></value>
   </row>
   <row>
    <qid><![CDATA[690]]></qid>
    <attribute><![CDATA[prefix]]></attribute>
    <value><![CDATA[$]]></value>
    <language><![CDATA[en]]></language>
   </row>
  </rows>
 </question_attributes>
</document>
limesurvey_question_690.lsq (7,727 bytes)   
Bug heat4
Complete LimeSurvey version number (& build)3.25.14+210218
I will donate to the project if issue is resolvedNo
BrowserChrome
Database type & versionMySQL 5
Server OS (if known)Linux
Webserver software & version (if known)Apache
PHP Version5.6
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

pstelling

pstelling

2021-09-23 12:53

developer   ~66605

Fix committed to 3.x-LTS branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=32748

c_schmitz

c_schmitz

2026-10-29 20:52

administrator   ~87008

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

Related Changesets

LimeSurvey: 3.x-LTS e1c8100a

2021-09-21 14:03

pstelling


Details Diff
Fixed issue 17437: missing prefix (mulitple numeric number) for total value Affected Issues
17437
mod - application/views/survey/questions/answer/multiplenumeric/rows/dynamic.twig Diff File

LimeSurvey: 3.x-LTS 6aeafd07

2021-09-23 14:53

pstelling

Committer: GitHub


Details Diff
Merge pull request #2045 from LimeSurvey/bug/17437-prefix-missing-total-value

Fixed issue 17437: missing prefix (mulitple numeric number) for tota…
Affected Issues
17437
mod - application/views/survey/questions/answer/multiplenumeric/rows/dynamic.twig Diff File

LimeSurvey: master d131a56a

2026-10-29 20:52

c_schmitz


Details Diff
Fixed issue 17437: The prefix and suffix were missing from the total row of Multiple numerical input questions
Dev Removed d-none from the total row's prefix/suffix in multiplenumeric/rows/dynamic.twig; the 3.x-LTS fix (e1c8100ab0) never reached 4.x+ and only covered the prefix
Dev Remaining/Total rows: label, prefix/suffix and value vertically centred, and prefix/suffix kept on the value's line on small screens too (Bootstrap table utilities, no theme CSS change)
Affected Issues
17437
mod - application/views/survey/questions/answer/multiplenumeric/rows/dynamic.twig Diff File

Issue History

Date Modified Username Field Change
2021-07-13 21:13 Mazi New Issue
2021-07-13 21:13 Mazi File Added: image.png
2021-07-13 21:13 Mazi File Added: limesurvey_question_690.lsq
2021-07-14 09:04 galads Assigned To => galads
2021-07-14 09:04 galads Status new => ready for testing
2021-07-14 09:09 galads Status ready for testing => confirmed
2021-09-10 09:06 galads Assigned To galads => gabrieljenik
2021-09-10 09:06 galads Status confirmed => assigned
2021-09-10 09:06 galads Steps to Reproduce Updated
2021-09-10 09:06 galads Zoho Project Synchronization => |Yes|
2021-09-10 09:09 LimeBot Zoho Projects ID => 85781000001246007
2021-09-10 09:09 LimeBot Zoho Projects URL => https://projects.limesurvey.org/portal/limesurvey#taskdetail/85781000000271009/85781000000431009/85781000001246007
2021-09-23 12:53 pstelling Changeset attached => LimeSurvey 3.x-LTS 6aeafd07
2021-09-23 12:53 pstelling Changeset attached => LimeSurvey 3.x-LTS e1c8100a
2021-09-23 12:53 pstelling Note Added: 66605
2021-09-23 12:53 pstelling Bug heat 0 => 2
2021-09-23 12:53 pstelling Assigned To gabrieljenik => pstelling
2021-09-23 12:53 pstelling Resolution open => fixed
2026-10-29 20:52 c_schmitz Changeset attached => LimeSurvey master d131a56a
2026-10-29 20:52 c_schmitz Note Added: 87008
2026-10-29 20:52 c_schmitz Assigned To pstelling => c_schmitz
2026-10-29 20:52 c_schmitz Status assigned => resolved
2026-10-29 20:52 c_schmitz Bug heat 2 => 4
2026-10-29 20:52 c_schmitz Bug heat 4 => 2
2026-10-29 20:52 guest Bug heat 2 => 4