It is an edge case, but nevertheless:
When you book an appointment, stop at the confirmation page, cancel that appointment in another window, and than reload the conformation page, the site breaks.

Comments

JoshaHubbers created an issue. See original summary.

joshahubbers’s picture

Issue summary: View changes
joshahubbers’s picture

This patch will catch the error, and report it to the watchdog.
There are also two webform notices thrown because we try to load a removed submission. But I think this is such an edge case that these notices can be ignored.

paulvandenburg’s picture

Status: Needs review » Needs work

Looks good and functionally works fine, but I have 2 minor remarks about the code:

  • You are using the short array syntax, which however nice shouldn't be used yet for this older module.
  • The drupal_goto() is hard mapped to an url that is not guaranteed to be correct. Better would be to use a node/nid path, where the nid can be found in a functional_content vset.
joshahubbers’s picture

Fixed Pauls remarks

joshahubbers’s picture

Status: Needs work » Needs review
joshahubbers’s picture

StatusFileSize
new1.82 KB

Upload went wrong...

paulvandenburg’s picture

Status: Needs review » Reviewed & tested by the community

Looks good, works great.

  • paulvandenburg committed 9d4688f on 7.x-1.x
    Issue #2994538 by JoshaHubbers: Reloading a confirmation page when the...
paulvandenburg’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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