Dependency Graph

Dependency Graph
related to related to child of child of duplicate of duplicate of

View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
11371Bug reportsData Entry (non public)public2016-06-17 08:45
ReporterFHwebm01 Assigned ToLouisGac 
PriorityurgentSeveritycrash 
Status closedResolutionfixed 
Product Version2.50.x 
Summary11371: Cannot save/update answer options with own "codes" in list-dropdowns/-radiobutton - questions
Description

If I want to save/update the answer options in questions of the type "list-dropdown" or "list-radiobuttons", it will only work with default codes "A1", "A2", "A3", ... and so on.

But it is not working with own codes!

And it deletes all answer options and makes a reset of the answer options, if I try to save/update the answer options with my own code(s)!

Steps To Reproduce
  1. Create a question of the type "list-dropdown" or "list-radiobuttons"
  2. Try to save/update answer options with own code(s)

Checkout the last two questions in my attachement (C00015 & C00016).

TagsNo tags attached.
Attached Files
Bug heat8
Complete LimeSurvey version number (& build)Version 2.50+ Build 160613
I will donate to the project if issue is resolvedNo
BrowserFirefox 45.0.2 (but tried it in Google Chrome and IE too, same problem)
Database type & versionmySQL 5.7
Server OS (if known)Windows 2012 R2 Server
Webserver software & version (if known)IIS 8.5
PHP VersionPHP Version 7.0.5

Relationships

related to 11154 closedLouisGac Unable to replace sub question code 

Activities

FHwebm01

FHwebm01

2016-06-13 15:07

reporter   ~39526

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   ~39527

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

LouisGac

LouisGac

2016-06-15 11:58

developer   ~39600

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

LouisGac

LouisGac

2016-06-15 11:59

developer   ~39601

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

DenisChenu

DenisChenu

2016-06-15 12:02

developer   ~39603

In fact : the 2 bug report is different : one is for sub question other for answers :)

We already show the good error for sub question, and now for answers too :)

LouisGac

LouisGac

2016-06-15 12:07

developer   ~39604

Yep,right now I'm doing PHP side (just in case).
Then, I'll do some HTML5 things to avoid form submission.

LouisGac

LouisGac

2016-06-15 12:28

developer   ~39605

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

LouisGac

LouisGac

2016-06-15 12:36

developer   ~39606

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

c_schmitz

c_schmitz

2016-06-17 08:45

administrator   ~39640

Version 2.50+ Build 160616 released

Related Changesets

LimeSurvey: master db773110

2016-06-15 09:56:25

LouisGac

Details Diff
Fixed issue 11371: Cannot save/update answer options with own "codes" in list-dropdowns/-radiobutton - questions (first step)
Dev: Display model's error messages when failing to update a sub-answer.
Affected Issues
11371
mod - application/controllers/admin/database.php Diff File

LimeSurvey: master 1a65a1de

2016-06-15 09:59:35

LouisGac

Details Diff
Fixed issue 11371: Cannot save/update answer options with own "codes" in list-dropdowns/-radiobutton - questions (first step)
Dev: Display model's error messages when failing to update a sub-answer.
Affected Issues
11371
mod - application/controllers/admin/database.php Diff File

LimeSurvey: master cb92b576

2016-06-15 10:28:28

LouisGac

Details Diff
Fixed issue 11371: Cannot save/update answer options with own "codes" in list-dropdowns/-radiobutton - questions
Dev: add new random code to answer when code is not valid so user entry is not lost
Affected Issues
11371
mod - application/controllers/admin/database.php Diff File

LimeSurvey: master 56101a81

2016-06-15 10:36:46

LouisGac

Details Diff
Fixed issue 11371: Cannot save/update answer options with own "codes" in list-dropdowns/-radiobutton - questions
Dev: change answer code input maxlength to 5
Affected Issues
11371
mod - application/views/admin/survey/Question/subquestionsAndAnswers/_answer_option.php Diff File

Issue History

Date Modified Username Field Change
2016-06-13 13:27 FHwebm01 New Issue
2016-06-13 13:27 FHwebm01 File Added: limesurvey_survey_894929.lss
2016-06-13 14:25 LouisGac Sticky Issue No => Yes
2016-06-13 15:07 FHwebm01 Note Added: 39526
2016-06-13 15:27 FHwebm01 Note Added: 39527
2016-06-15 11:04 LouisGac Assigned To => LouisGac
2016-06-15 11:04 LouisGac Priority none => urgent
2016-06-15 11:04 LouisGac Status new => assigned
2016-06-15 11:58 LouisGac Changeset attached => LimeSurvey master db773110
2016-06-15 11:58 LouisGac Note Added: 39600
2016-06-15 11:58 LouisGac Resolution open => fixed
2016-06-15 11:59 LouisGac Changeset attached => LimeSurvey master 1a65a1de
2016-06-15 11:59 LouisGac Note Added: 39601
2016-06-15 12:01 DenisChenu Relationship added related to 11154
2016-06-15 12:02 DenisChenu Note Added: 39603
2016-06-15 12:07 LouisGac Note Added: 39604
2016-06-15 12:28 LouisGac Changeset attached => LimeSurvey master cb92b576
2016-06-15 12:28 LouisGac Note Added: 39605
2016-06-15 12:36 LouisGac Changeset attached => LimeSurvey master 56101a81
2016-06-15 12:36 LouisGac Note Added: 39606
2016-06-15 13:32 LouisGac Sticky Issue Yes => No
2016-06-16 15:35 LouisGac Status assigned => resolved
2016-06-17 08:45 c_schmitz Note Added: 39640
2016-06-17 08:45 c_schmitz Status resolved => closed