- Issue created by @John_B
- 🇬🇧United Kingdom John_B London (UK), Worthing (UK), Innsbruck (Tirol)
The problem seems to be that Drupal loads ajax libraries for admin but not for anonymous. Webform loads ajax libraries. So we need to load ajax libraries explicitly if an EBT button is on the page.
- Status changed to Needs review
6 months ago 9:04am 21 June 2024 - 🇬🇧United Kingdom John_B London (UK), Worthing (UK), Innsbruck (Tirol)
This patch works for me.
-
levmyshkin →
committed 8cfe1a4f on 1.4.x
Issue #3456067 by John_B: Not working logged out
-
levmyshkin →
committed 8cfe1a4f on 1.4.x
- 🇷🇸Serbia levmyshkin Novi Sad, Serbia
Hi John_B, I added your code after checking block content bundle:
if (empty($variables['elements']['content']['#block_content']) || $variables['elements']['content']['#block_content']->bundle() !== 'ebt_webform_popup') { return; } // @See https://drupal.org/node/3456067 $variables['#attached']['library'][] = 'webform/webform.ajax';
And pushed changes in 1.4.x branch for EBT Webform Popup.
- 🇷🇸Serbia levmyshkin Novi Sad, Serbia
I will close the ticket since it's working for you. Feel free to re-open the ticket if the bug is still present.
- Status changed to Fixed
6 months ago 2:21pm 21 June 2024 - 🇷🇸Serbia levmyshkin Novi Sad, Serbia
Hey John_B, I added a new release 1.4.4, so you can test it for your site.
- 🇬🇧United Kingdom John_B London (UK), Worthing (UK), Innsbruck (Tirol)
That works, thanks!