View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
04985Bug reports[All Projects] Survey takingpublic2011-02-28 23:562011-04-11 11:34
Assigned Totpartner 
Product Version1.91RC4 
Target Version1.91RC5Fixed in Version1.91RC6 
Summary04985: Form submit firing twice
DescriptionAn onclick function which includes an extra submit has been added to the "Next" button causing the submit function to fire twice when the button is clicked.

This causes any warnings such as minimum answers to be alerted twice and the survey advances despite the requirements not being met.

The function is submit_and_disable() in survey_runtime.js.

Does anyone know why this function which includes an unecessary submit was added to the next button or have any reason not to remove it?

See my attached patch.
Steps To ReproduceLoad up the attached survey which includes a mutiple-options question with "Minimum answeres" = 2.

In group 1, do NOT answer the multi-opts and click next.

The alert appears twice and the survey advances.
I will donate to the project if issue is resolvedNo
LimeSurvey build number OR git commit ID9836
Database & DB-VersionmySQL - 5.1.41
Operating System (Server)Win 7
Webserver software & versionApache - 2.2.14
PHP VersionPHP - 5.3.1
Attached Files? file icon limesurvey_survey_51464.lss [^] (23,637 bytes) 2011-02-28 23:56
patch file icon double_submit_fix.patch [^] (3,163 bytes) 2011-02-28 23:57 [Show Content]

- Relationships

-  Notes
tpartner (developer)
2011-03-01 21:39

Fixed in revision 9539

- Issue History
Date Modified Username Field Change
2011-02-28 23:56 tpartner New Issue
2011-02-28 23:56 tpartner File Added: limesurvey_survey_51464.lss
2011-02-28 23:57 tpartner File Added: double_submit_fix.patch
2011-03-01 21:39 tpartner Assigned To => tpartner
2011-03-01 21:39 tpartner Status new => assigned
2011-03-01 21:39 tpartner Note Added: 14300
2011-03-01 21:39 tpartner Status assigned => resolved
2011-03-01 21:39 tpartner Resolution open => fixed
2011-04-11 11:34 c_schmitz Fixed in Version => 1.91RC6
2011-04-11 11:34 c_schmitz Status resolved => closed

Copyright © 2000 - 2016 MantisBT Team
Powered by Mantis Bugtracker