Group Id not set until cache is cleared

Created on 15 February 2019, almost 6 years ago
Updated 5 April 2023, over 1 year ago

It seems that since 8.x-1.4, somehow the changes committed in https://www.drupal.org/project/popup_field_group/issues/3029960 β†’ seems to have cause new group ids to not generate until the cache is cleared.

To reproduce:

Create a view of an entity that uses popup_field_group so that there are several on the page.

In my case, I created a block view, which is displayed via Layout Builder on a node. The entities displayed in the block are referenced ECK entities from an entity reference field on the node.

Edit the node, adding one or more entity references.

Save the node. View the node.

When I click the popup link ( which is now a ) on my newest referenced entity, it displays a different referenced entity's popup.

When I inspect the newest element, I see that data-target="popup-field-group-[MY_FIELD_GROUP]" ( note the lack of unique ID ). Looking at the popup container, it has an id="popup-field-group-[MY_FIELD_GROUP]" ( again, no unique ID ).

Looking at the previously created popups, they have data-target="popup-field-group-[MY_FIELD_GROUP]-[ID]" and matching id's.

If I clear cache, the new field group gets the proper ID.

I disabled cache on my view since the update, but still no joy. I have all other caching disabled, twig debug settings on, completely in development mode. I am not sure why with the changes it requires a cache clear, it was working properly before the update.

πŸ› Bug report
Status

Closed: cannot reproduce

Version

1.4

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States scottsawyer Atlanta

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024