View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
06361Bug reportsSurvey takingpublic2012-10-05 15:26
ReporterDenisChenu Assigned ToDenisChenu  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.92+ 
Fixed in Version2.00+ 
Summary06361: Javascript error with date question type and Display dropdown boxes
Description

When using tabulation to do a survey, with a date/dropdown question type (attribute Display dropdown boxes).
There are a javascript error

Steps To Reproduce

Use a date question with "Display dropdown boxes" attribute.

Use tabulation to take the survey, unfocus make javascript error.

Other javascript is OK (see lss files for example).

Additional Information

Erreur : document.getElementById(hiddenformname) is null

Due to :
if (type == 'radio' || type == 'select-one')
{
var hiddenformname='java'+name;
document.getElementById(hiddenformname).value=value;
}

For checkconditions function

Can be replaced by:
if (type == 'radio' || type == 'select-one')
{
var hiddenformname='java'+name;
value=$('#'+hiddenformname).val();
}

for quick patch.

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)120718
I will donate to the project if issue is resolvedNo
BrowserFF12
Database type & versionnot relevant
Server OS (if known)not relevant
Webserver software & version (if known)not relevant
PHP Versionnot relevant

Relationships

related to 06366 closedc_schmitz Date/time questions unanswerable with dropdowns 
child of 06376 closedc_schmitz Date question broken 

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2012-10-01 12:19

administrator   ~20949

Hi,

is this resolved in 2.0?

DenisChenu

DenisChenu

2012-10-02 10:02

developer   ~20970

No,

Again :
Horodatage : 02/10/2012 09:59:17
Erreur : TypeError: document.getElementById(hiddenformname) is null
Fichier Source : http://limesurvey......./index.php/survey/index
Ligne : 138

But just with "tabulation" navigation between each dropdown.

Don't found why this select are in checkconditions because dropdown doesn't have checkcondition function ....

Denis

DenisChenu

DenisChenu

2012-10-04 12:20

developer   ~21027

I have it !!!!

It's : em_javascript : LEMsetTabIndexes ...

Put a bad fixes and put a new Developpement issue ..

DenisChenu

DenisChenu

2012-10-04 12:57

developer   ~21029

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

c_schmitz

c_schmitz

2012-10-05 15:26

administrator   ~21074

New version 2.00+ build 121005 released.

Related Changesets

LimeSurvey: master 00c7ef1a

2012-10-04 05:56

DenisChenu


Details Diff
Fixed issue 06361: tab on date with drop-down throw javascript error
Dev: use jquery to change value of #java and #answer
Affected Issues
06361
mod - application/helpers/SurveyRuntimeHelper.php Diff File

Issue History

Date Modified Username Field Change
2012-07-21 20:26 DenisChenu New Issue
2012-07-23 10:02 c_schmitz Assigned To => DenisChenu
2012-07-23 10:02 c_schmitz Status new => assigned
2012-07-23 11:36 DenisChenu Relationship added related to 06366
2012-07-23 15:34 DenisChenu Relationship added child of 06376
2012-10-01 12:19 c_schmitz Note Added: 20949
2012-10-01 12:19 c_schmitz Status assigned => feedback
2012-10-02 10:02 DenisChenu Note Added: 20970
2012-10-02 10:02 DenisChenu Status feedback => assigned
2012-10-04 12:20 DenisChenu Note Added: 21027
2012-10-04 12:57 DenisChenu Changeset attached => LimeSurvey master 00c7ef1a
2012-10-04 12:57 DenisChenu Note Added: 21029
2012-10-04 12:57 DenisChenu Resolution open => fixed
2012-10-05 08:56 DenisChenu Status assigned => resolved
2012-10-05 08:56 DenisChenu Fixed in Version => 2.00+
2012-10-05 15:26 c_schmitz Note Added: 21074
2012-10-05 15:26 c_schmitz Status resolved => closed