View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
11154Bug reportsSurvey editingpublic2016-06-17 08:45
ReporterDenisChenu Assigned ToLouisGac 
PriorityhighSeverityminor 
Status closedResolutionfixed 
Product Version2.06+ 
Fixed in Version2.50.x 
Summary11154: Unable to replace sub question code
Description

We are unable to replace sub question code

Steps To Reproduce

Create a multiple chose sub question,
set code to
SQ1
SQ2
SQ3
SQ4
Save
Try to replace the code (not move, replace)
SQ4
SQ3
SQ2
SQ1

Additional Information

We can use move an update the sentence, but it happen sometimes in real situation where : sentence have a big HTML opr are in another language

The only solution is
Update to
SQ1a
SQ2a
SQ3a
SQ4a
and after update to
SQ4
SQ3
SQ2
SQ1

It's a tricky issue : each subquestion validation happen, but when try to udate SQ1 to SQ4 : SQ4 still exist.
I don't like the idea to remove all sub question and readding it each time we update sub question.
It's minor issue : exist in 2.00 to 2.50 (and surely in 3.00)

TagsNo tags attached.
Attached Files
Bug heat8
Complete LimeSurvey version number (& build)160511
I will donate to the project if issue is resolvedNo
Browsernot relevant
Database type & versionnot relevant
Server OS (if known)not relevant
Webserver software & version (if known)not relevant
PHP Versionnot relevant

Relationships

related to 11371 closedLouisGac Cannot save/update answer options with own "codes" in list-dropdowns/-radiobutton - questions 

Users monitoring this issue

There are no users monitoring this issue.

Activities

FHwebm01

FHwebm01

2016-06-13 13:28

reporter   ~39520

The same here:
https://bugs.limesurvey.org/view.php?id=11371

FHwebm01

FHwebm01

2016-06-13 13:28

reporter   ~39521

But for me it is not a small error, it is a blocker...

FHwebm01

FHwebm01

2016-06-13 15:07

reporter   ~39525

If the own code has 5- characters, it is OK.
If the own code has 6+ characters, it is NOT OK!!

FHwebm01

FHwebm01

2016-06-13 15:27

reporter   ~39528

With other question types, like matrix, it is ok to have 6+ characters.

DenisChenu

DenisChenu

2016-06-13 16:12

developer   ~39529

Same issue in 2.06 and 2.50 : origin of issues :

  • We update/add eac qub question code one by one
    Maybe :
  • Delet whole Subquestion
  • Adding it one by one

can be a solution. B

But i don't like to delete something :)

LouisGac

LouisGac

2016-06-15 13:32

developer   ~39607

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

LouisGac

LouisGac

2016-06-15 13:32

developer   ~39608

No deletion involved ;-)

c_schmitz

c_schmitz

2016-06-17 08:45

administrator   ~39644

Version 2.50+ Build 160616 released

Related Changesets

LimeSurvey: master 83bb55fc

2016-06-15 11:11:02

LouisGac

Details Diff
Fixed issue 11154: Unable to replace sub question code (first step)
Dev: if subquestion code is duplicate, create a random new one.
Affected Issues
11154
mod - application/controllers/admin/database.php Diff File

LimeSurvey: master fce6a373

2016-06-15 11:31:53

LouisGac

Details Diff
Fixed issue 11154: Unable to replace sub question code
Dev: Give to subquestions to edit a temporary random title to avoid title duplication on update
Affected Issues
11154
mod - application/controllers/admin/database.php Diff File

Issue History

Date Modified Username Field Change
2016-05-11 14:29 DenisChenu New Issue
2016-05-11 14:29 DenisChenu File Added: limesurvey_survey_replaceSQcode.lss
2016-05-11 14:30 DenisChenu File Added: Capture du 2016-05-11 14-24-35.png
2016-06-13 13:21 c_schmitz Priority none => high
2016-06-13 13:28 FHwebm01 Note Added: 39520
2016-06-13 13:28 FHwebm01 Note Added: 39521
2016-06-13 14:25 LouisGac Sticky Issue No => Yes
2016-06-13 15:07 FHwebm01 Note Added: 39525
2016-06-13 15:27 FHwebm01 Note Added: 39528
2016-06-13 16:12 DenisChenu Note Added: 39529
2016-06-15 12:01 DenisChenu Relationship added related to 11371
2016-06-15 13:32 LouisGac Changeset attached => LimeSurvey master 83bb55fc
2016-06-15 13:32 LouisGac Changeset attached => LimeSurvey master fce6a373
2016-06-15 13:32 LouisGac Note Added: 39607
2016-06-15 13:32 LouisGac Assigned To => LouisGac
2016-06-15 13:32 LouisGac Resolution open => fixed
2016-06-15 13:32 LouisGac Note Added: 39608
2016-06-15 13:32 LouisGac Status new => resolved
2016-06-15 13:32 LouisGac Fixed in Version => 2.5
2016-06-15 15:27 c_schmitz Sticky Issue Yes => No
2016-06-17 08:45 c_schmitz Note Added: 39644
2016-06-17 08:45 c_schmitz Status resolved => closed
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing