View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
03445 | Bug reports | Survey taking | public | 2009-07-07 14:23 | 2009-08-03 09:22 |
Reporter | Assigned To | c_schmitz | |||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 1.81+ | ||||
Fixed in Version | 1.85+ | ||||
Summary | 03445: Disabling going to previous q: does not work if back button used in browser | ||||
Description | When I disable the option for a user to go to a previous question I can still use the back button in the browser. Can it be confirmed that this is a bug or not? Ofcourse, when a participant uses the back button, the Limesurvey needs to detect it is the last page the participant is requesting. If not then return the last page again. Can I get suggestions where to look in the source code to fix it myself? | ||||
Tags | No tags attached. | ||||
Bug heat | 4 | ||||
Complete LimeSurvey version number (& build) | 6617 | ||||
I will donate to the project if issue is resolved | |||||
Browser | Firefox 3.x and IE 7.0 | ||||
Database type & version | XAMP 1.6.8 | ||||
Server OS (if known) | |||||
Webserver software & version (if known) | |||||
PHP Version | |||||
Proof of concept belowHow can this be integrated into limesurvey? I saw that a session variable $_SESSION['step'] is used? <?php // Turn on error reporting for this page session_start(); if (isset($_POST['logout'])) { if (isset($_SESSION['counter']) && isset($_POST['counter'])) { echo " ?> |
|
A quick hack to question.php (my own local installation) result in behavior I want. Change line 26 (build 6617) to: It only updates the 'step' session variable if $thisstep (contains step var from last form post) is equal to the 'step' variable fount in the session. Of course this is only a quick hack:
Can you confirm this does NOT cause harm? Thanx! |
|
Your solution looks fine. Thank you. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2009-07-07 14:23 |
|
New Issue | |
2009-07-07 14:23 |
|
Status | new => assigned |
2009-07-07 14:23 |
|
Assigned To | => user372 |
2009-07-07 14:23 |
|
Build Number | => 6617 |
2009-07-07 14:23 |
|
Browser | => Firefox 3.x and IE 7.0 |
2009-07-07 14:23 |
|
Database & DB-Version | => XAMP 1.6.8 |
2009-07-07 23:36 |
|
Assigned To | user372 => c_schmitz |
2009-07-08 10:58 |
|
Note Added: 08793 | |
2009-07-08 12:47 |
|
Note Added: 08796 | |
2009-07-29 14:26 | c_schmitz | Note Added: 08984 | |
2009-07-29 14:26 | c_schmitz | Status | assigned => resolved |
2009-07-29 14:26 | c_schmitz | Fixed in Version | => 1.85+ |
2009-07-29 14:26 | c_schmitz | Resolution | open => fixed |
2009-08-03 09:22 | c_schmitz | Status | resolved => closed |
2010-10-25 00:18 | c_schmitz | Category | Survey at Runtime => Survey taking |