|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|04985||Bug reports||[All Projects] Survey taking||public||2011-02-28 23:56||2011-04-11 11:34|
|Target Version||1.91RC5||Fixed in Version||1.91RC6|
|Summary||04985: Form submit firing twice|
|Description||An 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 Reproduce||Load 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.
|Tags||No tags attached.|
|Complete LimeSurvey version number (& build)||9836|
|I will donate to the project if issue is resolved||No|
|Database & DB-Version||mySQL - 5.1.41|
|Operating System (Server)||Win 7|
|Webserver software & version||Apache - 2.2.14|
|PHP Version||PHP - 5.3.1|
|Fixed in revision 9539|
|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|