Problem/Motivation

The body tag used to receive a class with the current status of the consent. The commit at https://git.drupalcode.org/project/eu-cookie-compliance/-/commit/2e97aae... breaks this.

Steps to reproduce

- Load a page with the popup
- Save a preference
- Check the classes on the body tag, it will not contain eu-cookie-compliance-status-<status> anymore.

Proposed resolution

The commit https://git.drupalcode.org/project/eu-cookie-compliance/-/commit/2e97aae... from issue https://www.drupal.org/i/3259010 replaces jQuery.once with once from core. So the fix is easy, just define the first argument of the callback function of the forEach and then pass that as the value to this line https://git.drupalcode.org/project/eu-cookie-compliance/-/blob/2e97aaeb4... instead of this

Remaining tasks

Send patch

User interface changes

None

API changes

None

Data model changes

None

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Michael Zetterberg fd. Lopez’s picture

Issue summary: View changes
svenryen’s picture

Status: Active » Needs review

svenryen’s picture

Status: Needs review » Fixed

Merged, thanks for the contribution!

Status: Fixed » Closed (fixed)

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