Problem/Motivation

If a webform is placed on the <front> page of a website, messages related to drafts and previous submissions are not displayed because \Drupal\webform\WebformSubmissionForm::displayMessages is looking only for webforms displayed via its canonical URL or source entity. These messages should always be displayed.

Proposed resolution

Allow users to see draft and view previous submission messages anywhere a webform is placed

Remaining tasks

  • Write patch.
  • Fix broken tests.
  • Possibly write more tests.

User interface changes

Message will now be displayed correctly.

API changes

None

Data model changes

None

CommentFileSizeAuthor
#3 3186807-2.patch1.47 KBjrockowitz
#2 3182709-2.patch838 bytesjrockowitz

Comments

jrockowitz created an issue. See original summary.

jrockowitz’s picture

StatusFileSize
new838 bytes
jrockowitz’s picture

StatusFileSize
new1.47 KB
jrockowitz’s picture

Status: Active » Needs review
jrockowitz’s picture

Status: Needs review » Fixed

  • jrockowitz authored 3a6ccea on 6.x
    Issue #3186807 by jrockowitz: Allow users to see draft and view previous...

  • jrockowitz authored 3a6ccea on 8.x-5.x
    Issue #3186807 by jrockowitz: Allow users to see draft and view previous...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.