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]

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ChuChuNaKu’s picture

FileSize
756 bytes

renamed patch file

sense-design’s picture

Status: Active » Needs review
malik.kotob’s picture

Rerolled the patch from the module's root directory!