Skip to content

Commit 85b78ee

Browse files
Adrian PerezMike Churchward
authored andcommitted
PR306: Save responses on page when prev and next buttons are used.
1 parent 8089238 commit 85b78ee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

questionnaire.class.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,6 +1110,7 @@ public function print_survey($userid=false, $quser) {
11101110
if (empty($msg)) {
11111111
return;
11121112
}
1113+
$formdata->rid = $this->existing_response_action($formdata, $userid);
11131114
}
11141115

11151116
if (!empty($formdata->resume) && ($this->resume)) {
@@ -1124,6 +1125,7 @@ public function print_survey($userid=false, $quser) {
11241125
$msg = $this->response_check_format($formdata->sec, $formdata);
11251126
if ($msg) {
11261127
$formdata->next = '';
1128+
$formdata->rid = $this->existing_response_action($formdata, $userid);
11271129
} else {
11281130
$nextsec = $this->next_page_action($formdata, $userid);
11291131
if ($nextsec === false) {
@@ -1147,6 +1149,7 @@ public function print_survey($userid=false, $quser) {
11471149
$msg = $this->response_check_format($formdata->sec, $formdata, false, true);
11481150
if ($msg) {
11491151
$formdata->prev = '';
1152+
$formdata->rid = $this->existing_response_action($formdata, $userid);
11501153
} else {
11511154
$prevsec = $this->previous_page_action($formdata, $userid);
11521155
if ($prevsec === false) {

0 commit comments

Comments
 (0)