View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
06046Bug reportsSurvey takingpublic2012-05-17 10:27
Reporteruser5800Assigned ToTMSWhite  
PriorityurgentSeveritypartial_block 
Status closedResolutionfixed 
Product Version1.92+ 
Fixed in Version1.92+ 
Summary06046: Resume later deletes answers from db when all questions are on one page
Description

Limesurvey (Version 1.92+ Build 120418) has a problem with 'Resume later' option when survey group option 'All in one' is selected.

Here is what happens:

  • You fill in the survey and click 'Resume later'. No problems here, saves survey nicely and returns back to survey.
  • You continue to fill in the survey and some time later click 'Resume later' again.

This time, when you are returned back to survey, the survey form is hidden and all the answers are deleted from database.

'Resume later' works fine when survey group option is 'Group by group' or 'Question by question'.

Also, if you use 'load unfinished survey' after 'resume later' in the 'all in one' -mode, it also works. But this is not something that is obvious to user.

Additional Information

This has been tested with simple survey of few questions and with a complex survey, both have the same problem with 'resume later' in 'all in one ' mode, but work fine in 'group by group' and 'question by question' modes.

TagsNo tags attached.
Attached Files
Bug heat6
Complete LimeSurvey version number (& build)120418
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMySQL 5
Server OS (if known)Linux
Webserver software & version (if known)Apache2
PHP Version5.2.6

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2012-05-02 23:52

administrator   ~18556

I am sorry, but I cannot reproduce this. Please attach a 3-question sample survey demonstrating the issue - thank you.

user5800

2012-05-04 16:13

  ~18578

Here is a simple three question survey that produces the bug. When this survey is run in 'all in one' survey mode and 'resume later' is used to save twice during survey, all the questions and answers disappear. But when this survey is run in 'group by group' survey mode, then 'resume later' works fine even if used more than twice.

TMSWhite

TMSWhite

2012-05-04 21:01

reporter   ~18585

I can't reproduce the problem. Each time I select "resume later", I have to enter a new username/password; and I can't use the old ones (e.g. if I try to resume from an old username/password, it doesn't work), but if I resume from the most recent username/password, I get the proper data back each time. I tested 5 rounds of resume/restore within and across browsers.

c_schmitz

c_schmitz

2012-05-07 09:16

administrator   ~18590

I can reproduce now, thank you.

c_schmitz

c_schmitz

2012-05-07 11:43

administrator   ~18592

TMSWhite: I have to admit I am lost at this. At some point during saving the survey so far the grouprelevance gets lost. I tried to debug this for hours but did not find out what exactly goes wrong. It seems to happens right after first save, the survey form is missing certain variables. I think because the 'Resume later' form is some undefined state for RM.

Can you please have a look at this?

TMSWhite

TMSWhite

2012-05-07 13:28

reporter   ~18601

Carsten-

I'd be willing to take a look, but I haven't been able to reproduce this myself. Can you provide more specific directions on how you reproduced this bug?

c_schmitz

c_schmitz

2012-05-07 13:49

administrator   ~18602

If you follow the original instructions it is easy to reproduce.
It is fine that you are asked each time for a new login password.
The problem does not happen on loading the quesiton/answer from a previous save but if you are saving two times on the same survey the groups are set to be hidden, when you go back to the survey after the responses so far were saved.

TMSWhite

TMSWhite

2012-05-07 15:19

reporter   ~18614

OK, now I can reproduce it using the original instructions (e.g. don't close browser windows and reload survey from emailed link; rather click resume twice from within the same session).

TMSWhite

TMSWhite

2012-05-09 19:42

reporter   ~18646

Fix committed to Yii branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=8385

TMSWhite

TMSWhite

2012-05-09 19:44

reporter   ~18647

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=8386

c_schmitz

c_schmitz

2012-05-17 10:27

administrator   ~18822

New 1.92+ version released.

Related Changesets

LimeSurvey: master 045a8c68

2012-05-09 10:38:10

TMSWhite

Details Diff
Fixed issue 06046: Resume later deletes answers from db when all questions are on one page Affected Issues
06046
mod - classes/expressions/LimeExpressionManager.php Diff File
mod - group.php Diff File

LimeSurvey: Yii 051be275

2012-05-09 10:41:39

TMSWhite

Details Diff
Fixed issue 06046: Resume later deletes answers from db when all questions are on one page Affected Issues
06046
mod - application/helpers/expressions/em_manager_helper.php Diff File

Issue History

Date Modified Username Field Change
2012-04-25 11:02 user5800 New Issue
2012-04-25 12:44 c_schmitz Assigned To => c_schmitz
2012-04-25 12:44 c_schmitz Status new => assigned
2012-05-02 23:52 c_schmitz Note Added: 18556
2012-05-02 23:52 c_schmitz Status assigned => feedback
2012-05-04 16:12 user5800 File Added: simple_3_question_test_survey.lss
2012-05-04 16:13 user5800 Note Added: 18578
2012-05-04 16:13 user5800 Status feedback => assigned
2012-05-04 21:01 TMSWhite Note Added: 18585
2012-05-07 09:16 c_schmitz Note Added: 18590
2012-05-07 11:43 c_schmitz Note Added: 18592
2012-05-07 11:43 c_schmitz Assigned To c_schmitz => TMSWhite
2012-05-07 13:28 TMSWhite Note Added: 18601
2012-05-07 13:49 c_schmitz Note Added: 18602
2012-05-07 15:19 TMSWhite Note Added: 18614
2012-05-09 19:42 TMSWhite Changeset attached => LimeSurvey Yii 051be275
2012-05-09 19:42 TMSWhite Note Added: 18646
2012-05-09 19:42 TMSWhite Resolution open => fixed
2012-05-09 19:44 TMSWhite Changeset attached => LimeSurvey master 045a8c68
2012-05-09 19:44 TMSWhite Note Added: 18647
2012-05-09 19:44 TMSWhite Status assigned => resolved
2012-05-09 19:44 TMSWhite Fixed in Version => 1.92+
2012-05-17 10:27 c_schmitz Note Added: 18822
2012-05-17 10:27 c_schmitz Status resolved => closed