View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
06254Bug reportsData Entry (non public)public2012-07-19 23:34
Reporterlolo Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.00RC3 
Fixed in Version2.00RC5 
Summary06254: It is possible to define many labels with the same code within a label set
Description

When adding a new label to a label set, it is possible to give the new label the same code value as an already existing label from the set.

(see Steps to Reproduce)

Oddly, once the label has been created and saved, trying to update the label title afterwards triggers an error window -> "Error: You are trying to use duplicate label codes".
So it looks like the consistency check is there but not performed at the right time (or only considering saved objects and ignoring the freshly entered ones).

On the other hand, I was able to create the following label set (in one go):
code:L001, title:xxx
code:L002, title:yyy
code:L001, title:zzz (same code L001 as first label)
=> after saving, I was able to update the titles/values of the labels as I wanted, and I never got the error message window again even though the first and the last label share the same code (L001).

Steps To Reproduce
  • select "Edit label sets"
  • create label set (enter anything for Set name, and click "Save")
  • on the next screen:
    1) enter a title for label L001 ("xxx")
    2) click "+" to add another label
    3) on the new label:
    a) replace label code L002 by L001
    b) enter title ("yyy")
    4) click "Save changes"

=> two labels (titled "xxx" and "yyy") have been created with the same code value "L001"

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)120528
I will donate to the project if issue is resolvedYes
BrowserSafari 5.1.7
Database type & versionMysql 5.5.24
Server OS (if known)Mac OS X Snow Leopard 10.8.6
Webserver software & version (if known)Apache 2
PHP Version5.3.14

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2012-06-22 17:07

administrator   ~19478

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

c_schmitz

c_schmitz

2012-07-19 23:34

administrator   ~19842

2.00RC6 released.

Related Changesets

LimeSurvey: Yii 4608b2c8

2012-06-22 08:04:04

c_schmitz

Details Diff
Fixed issue 06254: Possible to define labels with the same code within a label set Affected Issues
06254
mod - application/views/admin/labels/labelview_view.php Diff File
mod - application/views/admin/survey/Question/subQuestion_view.php Diff File
mod - scripts/admin/admin_core.js Diff File
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-06-22 14:22 lolo New Issue
2012-06-22 15:26 c_schmitz Assigned To => c_schmitz
2012-06-22 15:26 c_schmitz Status new => assigned
2012-06-22 17:03 c_schmitz Status assigned => resolved
2012-06-22 17:03 c_schmitz Fixed in Version => 2.00RC5
2012-06-22 17:03 c_schmitz Resolution open => fixed
2012-06-22 17:07 c_schmitz Changeset attached => LimeSurvey Yii 4608b2c8
2012-06-22 17:07 c_schmitz Note Added: 19478
2012-07-19 23:34 c_schmitz Note Added: 19842
2012-07-19 23:34 c_schmitz Status resolved => closed