View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
09230Bug reportsSurvey editingpublic2014-09-15 13:58
ReporterHananaBands Assigned Toc_schmitz  
PriorityurgentSeveritypartial_block 
Status closedResolutionunable to reproduce 
Summary09230: Unable to add questions
Description

'Add question' button triggers a JavaScript error in all browsers. I am unable to add a single question to my surveys.

Steps To Reproduce

I've just installed limesurvey and I created my first survey, first question group then go to add a question (of any kind).

The 'Add Question' button triggers a JavaScript error and doesn't function.

If I disable Javascript in my browser the button works, but I lose all other JavaScript functionality.

Additional Information

ReferenceError: hasFormValidation is not defined:
"if(hasFormValidation)"
questions.js (line 66)

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)Version 2.05+ Build 140911
I will donate to the project if issue is resolvedYes
Browser
Database type & versionMySQL 5.5.38
Server OS (if known)debian-linux-gnu (x86_64)
Webserver software & version (if known)?
PHP Version5.x
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

HananaBands

HananaBands

2014-09-14 21:58

reporter   ~30625

I found the issue. The problem is in the file:
limesurvey/survey/scripts/admin/answers.js

Line 336 throws an error on load:
codearray=codearray.filter( onlyUnique );

The error is that 'onlyUnique' is not defined, and this causes JavaScript execution to cease. By removing this line all other JavaScript errors were fixed, including the one I have reported here, which is not an issue in itself.

c_schmitz

c_schmitz

2014-09-15 13:56

administrator   ~30631

Last edited: 2014-09-15 13:58

Please clear your browser cache after update - this issue has been discussed several times in the forums before.

Issue History

Date Modified Username Field Change
2014-09-14 21:33 HananaBands New Issue
2014-09-14 21:58 HananaBands Note Added: 30625
2014-09-15 13:56 c_schmitz Note Added: 30631
2014-09-15 13:56 c_schmitz Assigned To => c_schmitz
2014-09-15 13:56 c_schmitz Status new => feedback
2014-09-15 13:58 c_schmitz Note Edited: 30631
2014-09-15 13:58 c_schmitz Status feedback => closed
2014-09-15 13:58 c_schmitz Resolution open => unable to reproduce
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing