View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 16451 | Bug reports | Survey taking | public | 2020-07-02 17:43 | 2020-07-13 12:35 |
| Reporter | gabrieljenik | Assigned To | |||
| Priority | normal | Severity | partial_block | ||
| Status | closed | Resolution | fixed | ||
| Product Version | 3.22.24 | ||||
| Summary | 16451: When admin previews surveys timer is not reset in between runs | ||||
| Description | When admin previews surveys timer is not reset in between runs. | ||||
| Steps To Reproduce | 1 - Create a 1 question survey with a 20 secs timer | ||||
| Tags | No tags attached. | ||||
| Bug heat | 10 | ||||
| Complete LimeSurvey version number (& build) | 3.22.24 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | |||||
| Database type & version | Mysql | ||||
| Server OS (if known) | |||||
| Webserver software & version (if known) | |||||
| PHP Version | 7 | ||||
| related to | 16452 | closed | When admin previews surveys timer is not reset in between runs |
|
timing-related cookies should be cleared when starting a survey |
|
No, else : don't use cookie , just session. Solution : move timers to extra plugin. |
|
|
On preview mode, set the 'resetQuestionTimers' js flag from server side, so timer.js can pick it and unset the localstorage (so, timer gets reset) PR: https://github.com/LimeSurvey/LimeSurvey/pull/1475 To compile timer.min.js we did as follows on the
That will generate 'timer.min.js'. |
|
|
Tested following issues by pulling the PR:
|
|
|
Fix committed to 3.x-LTS branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=30274 |
|
|
Fixed in Release 3.22.26+200714 |
|
|
LimeSurvey: 3.x-LTS 8d954889 2020-07-11 11:42 Committer: GitHub Details Diff |
Fixed issue 16451: When admin previews surveys timer is not reset in between runs (#1475) Set the 'resetQuestionTimers' js flag from server side, so timer.js can pick it and unset the localstorage |
Affected Issues 16451 |
|
| mod - application/controllers/survey/index.php | Diff File | ||
| mod - application/helpers/frontend_helper.php | Diff File | ||
| mod - assets/packages/questions/timer/src/timeclass.js | Diff File | ||
| mod - assets/packages/questions/timer/timer.js | Diff File | ||
| mod - assets/packages/questions/timer/timer.min.js | Diff File | ||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2020-07-02 17:43 | gabrieljenik | New Issue | |
| 2020-07-02 17:43 | gabrieljenik | Issue cloned: 16452 | |
| 2020-07-02 17:44 | gabrieljenik | Relationship added | related to 16452 |
| 2020-07-02 18:02 | gabrieljenik | Description Updated | |
| 2020-07-02 18:08 | gabrieljenik | Note Added: 58661 | |
| 2020-07-03 08:48 | DenisChenu | Note Added: 58672 | |
| 2020-07-06 11:44 | cdorin | Priority | none => normal |
| 2020-07-06 11:44 | cdorin | Status | new => confirmed |
| 2020-07-06 11:44 | cdorin | Zoho Sprints | => |Yes| |
| 2020-07-06 11:44 |
|
Zoho Sprints ID | => 14469000000167001 |
| 2020-07-08 19:25 | gabrieljenik | Note Added: 58810 | |
| 2020-07-08 19:33 | gabrieljenik | Note Edited: 58810 | |
| 2020-07-10 17:27 |
|
Note Added: 58900 | |
| 2020-07-11 09:42 | gabrieljenik | Changeset attached | => LimeSurvey 3.x-LTS 8d954889 |
| 2020-07-11 09:42 | guest | Note Added: 58907 | |
| 2020-07-13 10:25 |
|
Zoho Sprints | Yes => |Yes| |
| 2020-07-13 10:25 |
|
Status | confirmed => resolved |
| 2020-07-13 12:35 | lime_release_bot | Zoho Sprints | Yes => |Yes| |
| 2020-07-13 12:35 | lime_release_bot | Note Added: 58913 | |
| 2020-07-13 12:35 | lime_release_bot | Status | resolved => closed |
| 2020-07-13 12:35 | lime_release_bot | Resolution | open => fixed |