View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
04632Bug reportsSurvey takingpublic2010-10-13 16:22
Reporterronvdburg Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.90+ 
Fixed in Version1.90+ 
Summary04632: 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.
= The last group contains conditions, none of which are satisfied.
= config.php contains: $show_empty_group_if_the_last_group_is_hidden = true;

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 1: in function createinsertquery
Instance 2: in function submitanswer

Instance 2 is used when you configured not to have an empty group page ($show_empty_group_if_the_last_group_is_hidden = FALSE).

TagsNo 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") 
     {
save.patch (408 bytes)   
Bug heat6
Complete LimeSurvey version number (& build)9142
I will donate to the project if issue is resolved
BrowserIE8
Database type & versionmysql 5.0.77
Server OS (if known)Centos 5.3 / Linux 2.6.18
Webserver software & version (if known)apache 2.2.3
PHP Version5.1.6

Users monitoring this issue

There are no users monitoring this issue.

Activities

ronvdburg

ronvdburg

2010-09-28 16:41

reporter   ~12919

I finally found the problem. I included the solution in the attached pacth file.

Mazi

Mazi

2010-09-30 00:30

updater   ~12941

You are doing some great work!

Thanks a lot, ronvdburg

c_schmitz

c_schmitz

2010-10-07 21:05

administrator   ~13032

Thank you!

c_schmitz

c_schmitz

2010-10-13 16:22

administrator   ~13132

Released in latest Plus version

Issue History

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