View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
04632 | Bug reports | Survey taking | public | 2010-09-28 16:09 | 2010-10-13 16:22 |
Reporter | ronvdburg | Assigned To | c_schmitz | ||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 1.90+ | ||||
Fixed in Version | 1.90+ | ||||
Summary | 04632: submitdate not saved if submitting via empty-group | ||||
Description | In certain situations, if I submit a survey, the token table is updated, but the submitdate in the survey_{id} table is not. | ||||
Steps To Reproduce | = A survey, with token persistence, in group mode. So, when <Next> button is used, the last group appears to have no questions and a "dummy group page" is shown with a <Submit> button. Pressing this submit buttion does update the token table, but does NOT update the 'submitdate' in table survey_{$sid}. | ||||
Additional Information | Related to 03799. I tried to look at the code, but am not able to solve this problem until now. I see two instances of "UPDATE ... SET submitdate ...". Instance 2 is used when you configured not to have an empty group page ($show_empty_group_if_the_last_group_is_hidden = FALSE). | ||||
Tags | No tags attached. | ||||
Attached Files | save.patch (408 bytes)
Index: limesurvey/save.php =================================================================== --- limesurvey/save.php (revision 9142) +++ limesurvey/save.php (working copy) @@ -112,7 +112,7 @@ } // SAVE if on page with questions or on submit page -if (isset($postedfieldnames)) +if (isset($postedfieldnames) || (isset($move) && $move == "movesubmit") ) { if ($thissurvey['active'] == "Y") { | ||||
Bug heat | 6 | ||||
Complete LimeSurvey version number (& build) | 9142 | ||||
I will donate to the project if issue is resolved | |||||
Browser | IE8 | ||||
Database type & version | mysql 5.0.77 | ||||
Server OS (if known) | Centos 5.3 / Linux 2.6.18 | ||||
Webserver software & version (if known) | apache 2.2.3 | ||||
PHP Version | 5.1.6 | ||||
I finally found the problem. I included the solution in the attached pacth file. |
|
You are doing some great work! Thanks a lot, ronvdburg |
|
Thank you! |
|
Released in latest Plus version |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2010-09-28 16:09 | ronvdburg | New Issue | |
2010-09-28 16:39 | ronvdburg | Tag Attached: ~/save.patch | |
2010-09-28 16:41 | ronvdburg | Note Added: 12919 | |
2010-09-28 16:41 | ronvdburg | Tag Detached: ~/save.patch | |
2010-09-28 16:42 | ronvdburg | File Added: save.patch | |
2010-09-30 00:30 | Mazi | Assigned To | => c_schmitz |
2010-09-30 00:30 | Mazi | Status | new => assigned |
2010-09-30 00:30 | Mazi | Note Added: 12941 | |
2010-10-07 21:05 | c_schmitz | Note Added: 13032 | |
2010-10-07 21:05 | c_schmitz | Status | assigned => resolved |
2010-10-07 21:05 | c_schmitz | Fixed in Version | => 1.90+ |
2010-10-07 21:05 | c_schmitz | Resolution | open => fixed |
2010-10-13 16:22 | c_schmitz | Note Added: 13132 | |
2010-10-13 16:22 | c_schmitz | Status | resolved => closed |
2010-10-25 00:18 | c_schmitz | Category | Survey at Runtime => Survey taking |