View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
09270Bug reportsData Entry (non public)public2014-10-10 10:43
Reportertmarket Assigned ToDenisChenu  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.05+ 
Fixed in Version2.05+ 
Summary09270: getallsets/ajaxsets issue when saving labelset
Description

Javascript error trying to save a labelset

Tested on own install and online demo. DenisChenu asked me to submit this as a bug report.

Here is link to forum entry:http://www.limesurvey.org/en/forum/development/98606-getallsets-ajaxsets-issue-when-saving-labelset

Steps To Reproduce

Inside a survey….
Add a question to a survey group.
Select Question type – list dropdown.
Click Add question
Click Edit answer options for this this question.
Enter new options.
But then try and save new or replace existing label set, nothing happens.

Additional Information

Using dev console, I see that I first get a 400 on
http://<domain.com>/<folder>/index.php?r=admin/labels/ajaxSets

and then another one at
http://<domain.com>/<folder>/index.php?r=admin/questions/ajaxlabelsetdetails&YII_CSRF_TOKEN=xxxx&lid=xx&sid=xxx

(I put the x's in to make it easier to read - happens on all surveys).

I went in to application/views/admin/survey/Question/answerOptions_view.php, and on lines 29 and 30 add an "sa" so the urls became "/admin/labels/sa/getAllSets" and "/admin/labels/sa/ajaxSets" and it works now.

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)140915
I will donate to the project if issue is resolvedNo
BrowserChrome
Database type & versionMysql 5.5
Server OS (if known)RH Linux
Webserver software & version (if known)Apache
PHP Version5.2.24

Relationships

related to 09269 closedDenisChenu Unable to delete label set 

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2014-09-30 18:26

developer   ~30721

'urlManager' => array(
'urlFormat' => 'get',
'showScriptName' => true,
),

OK with 'urlFormat' => 'path',

DenisChenu

DenisChenu

2014-09-30 19:14

developer   ~30722

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

c_schmitz

c_schmitz

2014-10-10 10:43

administrator   ~30761

2.05+ Build 141003 released

Related Changesets

LimeSurvey: master 5e325ebc

2014-09-30 17:14:18

DenisChenu

Details Diff
Fixed issue 09270: getallsets/ajaxsets issue when saving labelset
Dev: urlformat get need /sa/
Affected Issues
09270
mod - application/views/admin/survey/Question/answerOptions_view.php Diff File
mod - application/views/admin/survey/Question/subQuestion_view.php Diff File

Issue History

Date Modified Username Field Change
2014-09-30 18:07 tmarket New Issue
2014-09-30 18:26 DenisChenu Note Added: 30721
2014-09-30 19:14 DenisChenu Changeset attached => LimeSurvey master 5e325ebc
2014-09-30 19:14 DenisChenu Note Added: 30722
2014-09-30 19:14 DenisChenu Assigned To => DenisChenu
2014-09-30 19:14 DenisChenu Resolution open => fixed
2014-09-30 19:15 DenisChenu Status new => resolved
2014-09-30 19:15 DenisChenu Fixed in Version => 2.05+
2014-10-02 16:08 DenisChenu Relationship added related to 09269
2014-10-10 10:43 c_schmitz Note Added: 30761
2014-10-10 10:43 c_schmitz Status resolved => closed