View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
05753Bug reportsSurvey takingpublic2012-03-14 21:08
ReporterMazi Assigned ToTMSWhite  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.92RC3 
Target Version1.92RC4Fixed in Version1.92RC4 
Summary05753: Wrong question index marks (white) when using timer
Description

If a question with timer is not answered and the timer "clicks" next, the index doesn't mark the no answer correctly

Steps To Reproduce
  1. Import the attached survey.
  2. Go to question #4 which is a short text.
  3. Wait until the timer has counted down. The "next" click is done automatically.
  4. Though no answer was given (and nothing is stored at the database), the question is marked white instead of red at the question index.
TagsNo tags attached.
Attached Files
Bug heat4
Complete LimeSurvey version number (& build)12263
I will donate to the project if issue is resolvedNo
BrowserFirefox 10
Database type & versionMySQL 5
Server OS (if known)Win 7
Webserver software & version (if known)Apache 2.2
PHP Version5.3.1

Users monitoring this issue

There are no users monitoring this issue.

Activities

TMSWhite

TMSWhite

2012-02-03 18:35

reporter   ~17213

Core problem is this JavaScript function. When the timer runs out, the value is set to ' ' instead of ''.

    function freezeFrame(elementid) {
        if(document.getElementById(elementid) !== null) {
            var answer=document.getElementById(elementid);
            if(answer.value == '') {
                answer.value=' ';
            }
            answer.blur();
            answer.onfocus=function() { answer.blur();};
        }
    };

So, this would be easy to fix, but are there possible side effects? The test for answer.value =='' was added in revision 7699 by c_schmitz.

TMSWhite

TMSWhite

2012-02-03 22:15

reporter   ~17218

Fixed in revision 12335

c_schmitz

c_schmitz

2012-02-14 14:10

administrator   ~17423

1.92RC4 released

Related Changesets

LimeSurvey: Yii ce356e8d

2012-02-03 13:16:37

TMSWhite

Details Diff
Fixed issue 05753: Wrong question index marks (white) when using timer

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_yii@12336 b72ed6b6-b9f8-46b5-92b4-906544132732
Affected Issues
05753
mod - application/helpers/qanda_helper.php Diff File

Issue History

Date Modified Username Field Change
2012-02-03 16:59 Mazi New Issue
2012-02-03 16:59 Mazi Status new => assigned
2012-02-03 16:59 Mazi Assigned To => TMSWhite
2012-02-03 16:59 Mazi File Added: limesurvey_survey_84523.lss
2012-02-03 18:35 TMSWhite Note Added: 17213
2012-02-03 22:15 TMSWhite Note Added: 17218
2012-02-03 22:15 TMSWhite Status assigned => resolved
2012-02-03 22:15 TMSWhite Fixed in Version => 1.92RC4
2012-02-03 22:15 TMSWhite Resolution open => fixed
2012-02-14 14:10 c_schmitz Note Added: 17423
2012-02-14 14:10 c_schmitz Status resolved => closed
2012-03-14 21:08 TMSWhite Changeset attached => Import 2012-03-09 13:30:34 Yii ce356e8d