View Issue Details

IDProjectCategoryView StatusLast Update
16219Bug reportsOtherpublic2020-07-06 13:21
Reporterymca Assigned To 
PriorityhighSeverityminor 
Status closedResolutionfixed 
Product Version4.2.1 
Summary16219: Testing a question will not be possible if admin participated in the survey.
Description
  1. Activated a survey
  2. Participated in it
  3. Deactivated it
  4. Changed a question
  5. previewed that question
    6 Got "error - You have already completed this survey."

Is it a bug/new feature?
No way of avoiding that instead of clearing browser cache?

TagsNo tags attached.
Complete LimeSurvey version number (& build)Version 4.2.1+200428
I will donate to the project if issue is resolvedNo
Browser
Database & DB-Versionsame
Server OS (if known)
Webserver software & version (if known)
PHP Versionsame

Relationships

related to 16235 closedgabrieljenik Welcome page show again if cookies are enable and survey is already done 

Activities

ollehar

ollehar

2020-05-05 18:00

administrator   ~57552

Can you preview the whole survey?

ymca

ymca

2020-05-05 18:21

reporter   ~57555

Last edited: 2020-07-02 14:49

No. Same result.

cdorin

cdorin

2020-05-06 14:56

manager   ~57584

Last edited: 2020-07-02 14:49

Tried with debug mode on and off - couldn't reproduce it. What is your system? Which browser ? (tested with latest Vivaldi & Firefox)

DenisChenu

DenisChenu

2020-05-06 15:20

developer   ~57586

Last edited: 2020-07-02 14:49

Remind to always put a lss

To reproduce : cookies activated
Survey must be activated

Then

  1. import survey
  2. Activate survey
  3. Launch survey (new tab)
  4. Next
  5. Submit
  6. Close tab
  7. Go to question edit
  8. Click on Preview question button

See url in screenshot

cdorin

cdorin

2020-05-06 15:22

manager   ~57587

Last edited: 2020-07-02 14:49

yep, indeed, thanks Denis for the additional info

DenisChenu

DenisChenu

2020-05-06 15:29

developer   ~57590

Last edited: 2020-07-02 14:49

The related is worst (but i never use cookies …)

DenisChenu

DenisChenu

2020-05-06 15:29

developer   ~57591

Last edited: 2020-07-02 14:49

Same issue in 3.22.15 (see related for a sample survey)

gabrieljenik

gabrieljenik

2020-06-30 18:00

developer   ~58596

Last edited: 2020-07-02 14:49

PR: https://github.com/LimeSurvey/LimeSurvey/pull/1458

Avoidng validation if we are on preview mode.

sushmanadendla

sushmanadendla

2020-07-02 11:08

manager   ~58641

Last edited: 2020-07-02 14:49

Tested the issue by checking out to branch, followed the steps mentioned above was able to view the question successfully after clicking on Preview question button from Question Editor.
Please refer the screenshot for more details.

16219_CookiesQuePreview.png (40,397 bytes)   
16219_CookiesQuePreview.png (40,397 bytes)   
guest

guest

2020-07-02 14:55

viewer   ~58653

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

lime_release_bot

lime_release_bot

2020-07-06 13:21

administrator   ~58714

Fixed in Release 4.3.3+200707

Related Changesets

LimeSurvey: master ee7db52e

2020-07-02 14:43:40

gabrieljenik


Committer: GitHub Details Diff
Fixed issue 16219: Testing a question will not be possible if admin participated in the survey (#1458) Affected Issues
16219
mod - application/controllers/survey/index.php Diff File

Issue History

Date Modified Username Field Change
2020-05-03 13:33 ymca New Issue
2020-05-05 18:00 ollehar Priority none => normal
2020-05-05 18:00 ollehar Note Added: 57552
2020-05-05 18:01 ollehar Status new => feedback
2020-05-05 18:21 ymca Note Added: 57555
2020-05-05 18:21 ymca Status feedback => new
2020-05-06 14:56 cdorin Status new => feedback
2020-05-06 14:56 cdorin Note Added: 57584
2020-05-06 15:20 DenisChenu Note Added: 57586
2020-05-06 15:20 DenisChenu File Added: limesurvey_survey_cookies.lss
2020-05-06 15:20 DenisChenu File Added: Capture d’écran du 2020-05-06 15-19-25.png
2020-05-06 15:20 DenisChenu Assigned To => cdorin
2020-05-06 15:20 DenisChenu Status feedback => assigned
2020-05-06 15:21 cdorin Priority normal => high
2020-05-06 15:21 cdorin Status assigned => confirmed
2020-05-06 15:21 cdorin Assigned To cdorin =>
2020-05-06 15:22 cdorin Note Added: 57587
2020-05-06 15:28 DenisChenu Relationship added related to 16235
2020-05-06 15:29 DenisChenu Note Added: 57590
2020-05-06 15:29 DenisChenu Note Added: 57591
2020-06-30 18:00 gabrieljenik Note Added: 58596
2020-07-02 11:08 sushmanadendla Note Added: 58641
2020-07-02 11:08 sushmanadendla File Added: 16219_CookiesQuePreview.png
2020-07-02 14:49 swendrich Status confirmed => resolved
2020-07-02 14:55 gabrieljenik Changeset attached => LimeSurvey master ee7db52e
2020-07-02 14:55 guest Note Added: 58653
2020-07-06 13:21 lime_release_bot Note Added: 58714
2020-07-06 13:21 lime_release_bot Status resolved => closed
2020-07-06 13:21 lime_release_bot Resolution open => fixed