View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
04523Bug reportsSurvey takingpublic2010-08-11 10:53
ReporterCarbonaCat Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.90 
Fixed in Version1.90+ 
Summary04523: Javascript error when executing a survey in the english language
Description

The file ui.datepicker-XX.js is always included. XX is replaced by the language code.
However, it is also included when in english although it should not (thus ui.datepicker-en.js doesn't exist).
-> http://jqueryui.com/demos/datepicker/#localization

The issue is that on some apache configurations, if a file doesn't exist but similar files do, it will return a "300 Multiple Choices". The browser interpret the body of the response and on IE7, Chrome and possibly FireFox it triggers an error. It is especially bad on IE7 if the configuration shows each JS errors.

On the best case, it still triggers a 404 File not found error.

Steps To Reproduce

I haven't figured the exact configuration to reproduce the JS error.

Additional Information

To correct it, in quanda.php, replace the line 1665

$js_header_includes[] = '/scripts/jquery/locale/ui.datepicker-'.$clang->langcode.'.js';

by those two lines:

if ($clang->langcode !== 'en')
$js_header_includes[] = '/scripts/jquery/locale/ui.datepicker-'.$clang->langcode.'.js';

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)9040
I will donate to the project if issue is resolved
BrowserChrome 5.0, IE7
Database type & versionMySQL5
Server OS (if known)Windows XP SP2 & Linux
Webserver software & version (if known)Apache
PHP Version5.3

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2010-08-10 10:48

administrator   ~12596

Thank you! Fixed in rev. 9044

Issue History

Date Modified Username Field Change
2010-08-09 09:43 CarbonaCat New Issue
2010-08-10 10:48 c_schmitz Assigned To => c_schmitz
2010-08-10 10:48 c_schmitz Status new => assigned
2010-08-10 10:48 c_schmitz Note Added: 12596
2010-08-10 10:48 c_schmitz Status assigned => resolved
2010-08-10 10:48 c_schmitz Fixed in Version => 1.90+
2010-08-10 10:48 c_schmitz Resolution open => fixed
2010-08-11 10:53 c_schmitz Status resolved => closed
2010-10-25 00:18 c_schmitz Category Survey at Runtime => Survey taking