Problem/Motivation
After creating a webform there are three Redirection location options available under under Form Settings and Redirect location. These options are:
- Confirmation page
- Custom URL:
- and No redirect (reload current page)
If the redirection location is set to Confirmation page, the confirmation should be shown on its own page. However, when the Webform NoSave module is enabled and the Confirmation page option is selected, the user is not taken to a new confirmation page. The Confirmation page option behaves the same as No redirect (reload current page).
Proposed resolution
When line 93 of the webform_nosave_form_alter function is changed from:
if (isset($nosave->attachments)) {
to:
if (isset($nosave->attachments) && $nosave->attachments) {
It seems to solve the issue above. A patch for the issue is attached. Credit goes to dstol for the solution. I'm just creating the patch.
Remaining tasks
User interface changes
API changes
Data model changes
Original report by [username]
Comment | File | Size | Author |
---|---|---|---|
#3 | webform_nosave-confirmation-2510860-3.patch | 592 bytes | malik.kotob |
#1 | webform_confirmation_2510860-1.patch | 756 bytes | ChuChuNaKu |
Comments
Comment #1
ChuChuNaKu CreditAttribution: ChuChuNaKu commentedrenamed patch file
Comment #2
sense-designComment #3
malik.kotob CreditAttribution: malik.kotob at Acquia for U.S. Department of Justice commentedRerolled the patch from the module's root directory!