End users can't save settings from the sidebar

Created on 17 July 2020, almost 4 years ago
Updated 21 February 2023, over 1 year ago

If you as a user want to adjust settings in the banner (ie enable or disable certain groups of cookies), you cannot save the settings. When I enable or disable options, I still only have the option to accept all or to not accept.

✨ Feature request
Status

Needs review

Version

4.4

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium daften

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.

  • πŸ‡¬πŸ‡§United Kingdom robcarr Perthshire, Scotland

    I applied the patch at #20 which didn't address the problem (although maybe another cause for that), and flags following error running in PHP 8.1

    Deprecated function: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\civiccookiecontrol\CCCConfig\AbstractCCCConfig->loadTextObject() (line 232 of /civicccookiecontrol/src/CCCConfig/AbstractCCCConfig.php).

    Removing the patch removes the error.

    This is the problem line:

     $this->config['text'] = array_filter($this->config['text'], 'strlen');
    

    Tried wrapping an If statement around it to test that $this->config['text'] is not null or set but that didn't seem to work

Production build 0.69.0 2024