Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When you change the payment method in the checkout form, system messages are not shown. This makes it hard to debug problems.
Views does this by adding the system messages to the form output. Patch coming.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2563021.commerce.system-messages-payment-pane-ajax.patch | 597 bytes | joachim |
Comments
Comment #2
joachim CreditAttribution: joachim commentedComment #3
torgosPizzaThis seems reasonable enough. Would like to get some more eyes on it.
Comment #4
mglamanUpdating tags. This requires some good old fashioned manual testing :)
Comment #5
torgosPizzaThis does work for me, all system messages remain intact when dealing with Ajax panes in the form.
Comment #6
mglamanSnippet from views/includes/ajax.inc. We're not checking if in AJAX, which it seems to be the issue here. The way error messages are handled by the form outside of AJAX should be working fine.
My one wonder would be: what about other panes that do AJAX, will it steal their messages? this might be an issue at core's message storage, but worthy question.
Comment #7
joelpittetLikely will steal any message sent with
drupal_set_message()
. Though I'm not quite sure which would win. I have my messages in panels_everywhere pane.