- π¬π§United Kingdom siliconandincense
I know this has been set as closed, but I am also getting this error by using the following steps:
1) I have a regular content type page that is already published
2) I set this page as draft and save it
3) I add a webform via a paragragraph, which has a webform reference field on it
4) I save the page
5) I view the page and get the same error as aboveI know this is a very personalised set of steps, but I'm hoping this may shed a little more light on the issue.
Can confirm #2 works, but as you say in #3 we get the submission message.
Apologese if this has been sorted in a subsequent ticket.
- π·π΄Romania mihai_brb
I got this error when the Webform reference field is attached to a Paragraph - that is attached to a Node.
Patch works. - Status changed to Active
over 1 year ago 1:16pm 27 April 2023 - Status changed to Needs work
over 1 year ago 2:35pm 27 May 2023 - πΊπΈUnited States jrockowitz Brooklyn, NY
The patch is most likely suppressing a larger issue with how the last submission is being determined.
We need to come up with simpler steps to reproduce the issue.
- Status changed to Closed: duplicate
over 1 year ago 1:16am 28 May 2023 - Status changed to Active
over 1 year ago 1:24am 28 May 2023 - πΊπΈUnited States jrockowitz Brooklyn, NY
I think #5 is catching that the issue has something to do with a webform embed via paragraph is not determining the correct source entity.
Paragraphs have become an ongoing challenge, and adjusting any of the existing logic without causing regressions is tough.
- πΊπΈUnited States gcb
I have the same issue, manifesting when I load up the layout builder configuration for a view mode for the entity.
- πΊπΈUnited States jrockowitz Brooklyn, NY
The proposed fix causes the switch/case to fall through to the next switch.
case WebformMessageManagerInterface::PREVIOUS_SUBMISSION: $webform_submission = $this->getSubmissionStorage()->getLastSubmission($webform, $source_entity, $this->currentUser); - $args = [':href' => $this->requestHandler->getUrl($webform_submission, $source_entity, 'webform.user.submission')->toString()]; - return $this->getCustomMessage('previous_submission_message', $args); + if ($webform_submission) { + $args = [':href' => $this->requestHandler->getUrl($webform_submission, $source_entity, 'webform.user.submission')->toString()]; + return $this->getCustomMessage('previous_submission_message', $args); + }