View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
17633Bug reportsQuestion editorpublic2021-11-02 09:06
ReportersdsAdm1n Assigned Togabrieljenik  
PriorityurgentSeveritycrash 
Status closedResolutionfixed 
Product Version5.x 
Summary17633: Changing Array (Texts) sub questions' label at runtime, manipulates question design
DescriptionI have an Array (Texts) question in my bilingual survey. After activating the survey, I changed the label of one sub-question and then I clicked Save button. after reviewing the question, I found that some sub-questions have been deleted from Y-Scale and new sub-questions have been inserted in X-Scale sub-questions.

**I have noticed that the issue happens when Y-Scale sub-questions have same code as the one specified for X-Scale sub-questions (e.g. "SQ001" is defined for first Y sub-question code and also for first X sub-question code)

**Not sure if same problem is affecting other question types.

**Check the case with question G01Q07 in the attached lss.
Steps To ReproduceSteps to reproduce
------------------------------
1. Create Array(Texts) question.
2. Specify sub-questions at Y-Scale and X-Scale using default code generated by LS (SQ001, SQ002....etc).
3. Activate the survey.
4. After activation, edit the text of first Y-Scale sub-question and click "Save and close" button.
5. Click Edit button again to view the question design.

Expected result
-------------------------
Sub-question label should be modified as per user input without any further impact.

Actual result
-----------------
Y-Scale sub-questions with code similar to the ones defined in X-Scale sub-questions get deleted, and X-Scale sub-questions get duplicated.

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)5.1.13+210923
I will donate to the project if issue is resolvedNo
BrowserGoogle Chrome
Database type & versionMS SQL Server 2016
Server OS (if known)Win Server 2019
Webserver software & version (if known)IIS 10
PHP Version7.4

Users monitoring this issue

User List There are no users monitoring this issue.

Activities

sdsAdm1n

sdsAdm1n

2021-09-29 06:19

reporter  

sdsAdm1n

sdsAdm1n

2021-09-29 06:23

reporter   ~66637

First image is showing the question design before editing first Y-Scale sub-question text, and the second image is showing what happened after saving my change.
ArrayText.png (86,188 bytes)   
ArrayText.png (86,188 bytes)   
ArrayTextAfterEdit.png (73,101 bytes)   
ArrayTextAfterEdit.png (73,101 bytes)   
gabrieljenik

gabrieljenik

2021-10-04 17:15

manager   ~66742

PR: https://github.com/LimeSurvey/LimeSurvey/pull/2076
gabrieljenik

gabrieljenik

2021-10-06 07:32

manager   ~66760

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

Related Changesets

LimeSurvey: master 844f0ee7

2021-10-06 07:32:33

gabrieljenik


Committer: GitHub Details Diff
Fixed issue 17633: Changing Array (Texts) sub questions' label at runtime, manipulates question design (#2076)

Co-authored-by: encuestabizdevgit <devgit@encuesta.biz>
Affected Issues
17633
mod - application/controllers/QuestionAdministrationController.php Diff File

Issue History

Date Modified Username Field Change
2021-09-29 06:19 sdsAdm1n New Issue
2021-09-29 06:19 sdsAdm1n File Added: limesurvey_survey_181249.lss
2021-09-29 06:23 sdsAdm1n Note Added: 66637
2021-09-29 06:23 sdsAdm1n File Added: ArrayText.png
2021-09-29 06:23 sdsAdm1n File Added: ArrayTextAfterEdit.png
2021-09-29 06:23 sdsAdm1n Bug heat 6 => 8
2021-09-29 09:45 ollehar Priority none => high
2021-09-29 09:45 ollehar Description Updated View Revisions
2021-09-29 09:45 ollehar Steps to Reproduce Updated View Revisions
2021-09-29 09:45 ollehar Priority high => urgent
2021-09-29 09:47 galads Assigned To => galads
2021-09-29 09:47 galads Status new => acknowledged
2021-10-04 10:01 galads Assigned To galads => gabrieljenik
2021-10-04 10:01 galads Status acknowledged => assigned
2021-10-04 10:02 galads View Status private => public
2021-10-04 10:02 galads Bug heat 8 => 2
2021-10-04 17:15 gabrieljenik Note Added: 66742
2021-10-04 17:15 gabrieljenik Bug heat 2 => 4
2021-10-05 17:40 galads Status assigned => review
2021-10-06 07:32 gabrieljenik Changeset attached => LimeSurvey master 844f0ee7
2021-10-06 07:32 gabrieljenik Note Added: 66760
2021-10-06 07:32 gabrieljenik Resolution open => fixed
2021-10-07 12:00 ollehar Status review => resolved
2021-11-02 09:06 c_schmitz Status resolved => closed