View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
05817Bug reportsSurvey editingpublic2012-03-14 21:08
Reporterledut Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.92RC3 
Target Version1.92Fixed in Version1.92 
Summary05817: "Allow editing answers after completion" setting create new answer and bypass use left property
Description

When :

  • "Allow editing answers after completion?" is set to Yes
  • and "Enable token-based response persistence?" is set to No :
    If the user ask to edit its completed answer : the editing form is displayed, even is use left token is equal to 0 and the user does not edit its answer but fill a new virgin answer. Once the form is submitted :
  • the answer table stores 2 answers with the same token.
  • the token table stores 1 invitation with useleft equal to -1.
Steps To Reproduce

1) create a survey
2) set "Allow editing answers after completion?" to Yes.
3) set "Enable token-based response persistence?" to No.
4) activate this survey.
5) create a token invitation (form example token value = "123").
6) complete the survey.
7) fill the survey again (go to index.php?sid=survey_sid&token=123)
--> Answered questions are empty ! they had been filled on 6).
8) submit
9) checks answers and invitaion on the LimeSurvey admin interface.

Additional Information

Concerning the new answer instead instaed of editing own answer : I's may not be a bug : as long as "Enable token-based response persistence?" is set to no, I guess a user should not be allowed to edit its answer. But I think the text "Allow editing answers after completion?" is not clear.
As a solution : in the survey editing setting, it may be interessting to disallow to set both "Allow editing answers after completion?" to Yes and "Enable token-based response persistence?" to No.
By the way, when I create a survey with "Allow editing answers after completion?" set to Yes, I can choose the public access mode : This is surprising : I can't understand how a user can edit its answers without using a token table...

TagsNo tags attached.
Attached Files
Bug heat8
Complete LimeSurvey version number (& build)12204
I will donate to the project if issue is resolvedNo
Browserfirefox
Database type & versionmysql v5.5.20
Server OS (if known)windows7
Webserver software & version (if known)wamp v2.2
PHP Version5.3.9

Users monitoring this issue

ledut

Activities

Mazi

Mazi

2012-02-22 15:44

updater   ~17555

Can you reproduce the problem at Limesurvey 1.91 as well?

ledut

ledut

2012-02-22 16:26

reporter   ~17561

Yes it does.

I suggest to fix the survey general editing page by:

  • Not allow to set 'Allow editing answers after completion' to yes if 'Enable token-based response persistence' is set to no.
c_schmitz

c_schmitz

2012-02-28 01:38

administrator   ~17667

"Allow editng answers after completion" does not necessarily require to have token-based persistence in general. I fixed it so both settings don't interfere with each other. So editing an completed response is possible with token persistence being off, now.

c_schmitz

c_schmitz

2012-03-03 02:25

administrator   ~17724

1.92 released

Related Changesets

LimeSurvey: Yii 5cde8965

2012-02-27 16:41:10

c_schmitz

Details Diff
Fixed issue 05817: "Allow editing answers after completion" setting creates new answer and bypasses 'uses left' property Affected Issues
05817
mod - application/controllers/survey/index.php Diff File

Issue History

Date Modified Username Field Change
2012-02-13 18:19 ledut New Issue
2012-02-13 18:19 ledut File Added: limesurvey_survey_54178.lss
2012-02-13 18:29 ledut Issue Monitored: ledut
2012-02-22 15:44 Mazi Note Added: 17555
2012-02-22 15:44 Mazi Assigned To => c_schmitz
2012-02-22 15:44 Mazi Status new => feedback
2012-02-22 16:26 ledut Note Added: 17561
2012-02-22 16:26 ledut Status feedback => assigned
2012-02-28 01:38 c_schmitz Note Added: 17667
2012-02-28 01:38 c_schmitz Status assigned => resolved
2012-02-28 01:38 c_schmitz Fixed in Version => 1.92
2012-02-28 01:38 c_schmitz Resolution open => fixed
2012-03-01 16:10 TMSWhite Target Version => 1.92
2012-03-03 02:25 c_schmitz Note Added: 17724
2012-03-03 02:25 c_schmitz Status resolved => closed
2012-03-14 21:08 c_schmitz Changeset attached => Import 2012-03-09 13:30:34 Yii 5cde8965
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing
2021-08-10 10:15 guest Bug heat 6 => 8