View Issue Details

This bug affects 1 person(s).
 16
IDProjectCategoryView StatusLast Update
17041Bug reportsConditionspublic2022-08-11 20:44
Reportergabrieljenik Assigned Togabrieljenik  
PrioritynoneSeverityminor 
Status closedResolutionfixed 
Product Version4.4.0 
Summary17041: Error with SUM on array text
Description

Well, its simple, if you have 2 questions, (Q1 and Q2 for example) both of them have 4 subquestions and Q2 is an array text with sum by column and numbers only and the Q2 is filtered by Q1, I mean, if on Q1 you dont select subquestion 1, on Q2 don should appear, well, if you do that and on the Q2 the first row dont appear, the array matrix dont make a sum, just show 0 on the total.

Steps To Reproduce

Create 2 questions, Q1 and Q2, Q2 is the array text just numbers and sum by column and filtered by Q1, if the first row dont appear on Q2, the sum dont work, show always 0.

Additional Information

This is the version for LS4

TagsNo tags attached.
Bug heat16
Complete LimeSurvey version number (& build)4.4.0
I will donate to the project if issue is resolvedNo
BrowserChrome
Database type & versionMariaDB
Server OS (if known)
Webserver software & version (if known)
PHP VersionPHP Version 7.2.33

Relationships

related to 16756 closedgabrieljenik Error with SUM on array text 
has duplicate 16934 closedgabrieljenik Error with Sum in array texts 

Users monitoring this issue

cdorin

Activities

DenisChenu

DenisChenu

2021-02-01 14:13

developer   ~61838

Last edited: 2021-02-01 14:14

with NAOK too ?

Can you upload a lss please ?

Oups : see related …

gabrieljenik

gabrieljenik

2021-02-01 14:15

manager   ~61839

PR: https://github.com/LimeSurvey/LimeSurvey/pull/1736

vharris

vharris

2021-02-03 14:26

reporter   ~61887

Steps to Reproduce:

  1. Create a survey. (Use .lss file provided for 16756).
  2. Add 2 questions, Q1 and Q2. Q2 must be an array text numbers only with sum by column, and filtered by Q1.
  3. Preview survey.

If the survey participant does not pick #1 (the 1st choice) in question one, the first row does not appear for Q2 and whatever numbers are entered in the other rows for question 2 are not totaled/summed. The sum is always 0. The participant must pick #1 (the 1st choice) in question 1in order for the sum/totals to work in question 2.

gabrieljenik

gabrieljenik

2021-02-04 13:08

manager   ~61935

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

lime_release_bot

lime_release_bot

2021-02-08 13:30

administrator   ~62003

Fixed in Release 4.4.2+210208

Related Changesets

LimeSurvey: master 8236f329

2021-02-04 13:08:41

gabrieljenik


Committer: GitHub Details Diff
Fixed issue 17041: Error with SUM on array text (#1736)

Updating calculations on relevance
Affected Issues
17041
mod - assets/packages/questions/arraynumeric/scripts/array-totalsum.js Diff File
mod - assets/packages/questions/arraynumeric/scripts/array-totalsum.min.js Diff File

Issue History

Date Modified Username Field Change
2021-02-01 14:07 gabrieljenik New Issue
2021-02-01 14:07 gabrieljenik Issue generated from: 16756
2021-02-01 14:07 gabrieljenik Relationship added related to 16756
2021-02-01 14:07 gabrieljenik Additional Information Updated
2021-02-01 14:13 DenisChenu Note Added: 61838
2021-02-01 14:14 DenisChenu Note Edited: 61838
2021-02-01 14:15 gabrieljenik Note Added: 61839
2021-02-03 14:26 vharris Note Added: 61887
2021-02-04 13:08 gabrieljenik Changeset attached => LimeSurvey master 8236f329
2021-02-04 13:08 gabrieljenik Note Added: 61935
2021-02-04 13:08 gabrieljenik Assigned To => gabrieljenik
2021-02-04 13:08 gabrieljenik Resolution open => fixed
2021-02-08 13:30 lime_release_bot Note Added: 62003
2021-02-08 13:30 lime_release_bot Status new => closed
2022-08-11 20:44 gabrieljenik Relationship added has duplicate 16934
2022-08-11 20:44 gabrieljenik Bug heat 8 => 14
2022-08-11 20:44 gabrieljenik Issue Monitored: cdorin
2022-08-11 20:44 gabrieljenik Bug heat 14 => 16