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
Issue fork eu_cookie_compliance-3272556
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
Comment #3
Michael Zetterberg fd. Lopez commentedComment #4
svenryen commentedComment #6
svenryen commentedMerged, thanks for the contribution!