View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
06061Bug reportsSurvey editingpublic2012-05-10 12:22
ReporterNickko Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.92+ 
Fixed in Version1.92+ 
Summary06061: Duplicate sub-quiestion code
Description

When you clic many time on the same "+" button, all added sub-question has the same code.

Steps To Reproduce

Create a question
Select type "array numbers" (Tableau (Nombres) in french)
Save the question then édit answer.
Clik 5 times on the "+" button to add 5 sub-questions
Added sub-question has all the code "SQ002".

TagsNo tags attached.
Attached Files
temls.png (19,720 bytes)   
temls.png (19,720 bytes)   
Bug heat4
Complete LimeSurvey version number (& build)120501
I will donate to the project if issue is resolvedNo
BrowserOpera
Database type & versionMySQL 5
Server OS (if known)Linux (1&1)
Webserver software & version (if known)Apache (1&1)
PHP VersionPHP 5

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2012-05-03 20:04

administrator   ~18570

So, what would you expect to happen instead ?

c_schmitz

c_schmitz

2012-05-07 09:13

administrator   ~18587

?

Nickko

Nickko

2012-05-07 09:45

updater   ~18591

If they have (for any reason) the futur id exist already, LS must choos another new ID.

The new ID must always have the higher value.
For example if i click 4 times on the "+" button in front of SQ001:
SQ001
SQ005
SQ004
SQ003
SQ002

An other possibility to modify previous allocated ID :
For example if i click 4 times on the "+" button in front of SQ001:
1st time:
SQ001
SQ002

2nd time:
SQ001
SQ002 (new id)
SQ003 (previous SQ002)

4rd time:
SQ001
SQ002
SQ003
SQ004
SQ005

This solution keep a logic order but change the previously added items. I don't know if it's a good think or not.

c_schmitz

c_schmitz

2012-05-07 13:02

administrator   ~18597

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

c_schmitz

c_schmitz

2012-05-07 13:03

administrator   ~18598

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

c_schmitz

c_schmitz

2012-05-07 13:03

administrator   ~18599

Changed it per your first suggestion.

Nickko

Nickko

2012-05-07 13:06

updater   ~18600

Thank's Carsten

Related Changesets

LimeSurvey: master 8114b531

2012-05-07 04:02:35

c_schmitz

Details Diff
Fixed issue 06061: Duplicate codes when adding new answer options/subquestions/labels Affected Issues
06061
mod - admin/scripts/answers.js Diff File
mod - admin/scripts/subquestions.js Diff File
mod - admin/scripts/updateset.js Diff File

LimeSurvey: Yii 34d84be9

2012-05-07 04:02:49

c_schmitz

Details Diff
Fixed issue 06061: Duplicate codes when adding new answer options/subquestions/labels Affected Issues
06061
mod - scripts/admin/answers.js Diff File
mod - scripts/admin/subquestions.js Diff File
mod - scripts/admin/updateset.js Diff File

Issue History

Date Modified Username Field Change
2012-05-03 17:27 Nickko New Issue
2012-05-03 17:27 Nickko File Added: temls.png
2012-05-03 20:04 c_schmitz Note Added: 18570
2012-05-03 20:04 c_schmitz Assigned To => c_schmitz
2012-05-03 20:04 c_schmitz Status new => feedback
2012-05-07 09:13 c_schmitz Note Added: 18587
2012-05-07 09:45 Nickko Note Added: 18591
2012-05-07 09:45 Nickko Status feedback => assigned
2012-05-07 13:02 c_schmitz Changeset attached => LimeSurvey master 8114b531
2012-05-07 13:02 c_schmitz Note Added: 18597
2012-05-07 13:02 c_schmitz Resolution open => fixed
2012-05-07 13:03 c_schmitz Changeset attached => LimeSurvey Yii 34d84be9
2012-05-07 13:03 c_schmitz Note Added: 18598
2012-05-07 13:03 c_schmitz Note Added: 18599
2012-05-07 13:03 c_schmitz Status assigned => resolved
2012-05-07 13:03 c_schmitz Fixed in Version => 1.92+
2012-05-07 13:06 Nickko Note Added: 18600
2012-05-10 12:22 c_schmitz Status resolved => closed
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing