[TikiWiki-commits] [Git][tikiwiki/tiki][29.x] [FIX] Cookie consent: preserve category keys in defaults
"Domeshow Emmanuel \(@Domeshow\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <6a765df7a0946_3819f668880de@gitlab-sidekiq-low-urgency-cpu-bound-v2-57d89f4484-snpz8.mail> |
Domeshow Emmanuel pushed to branch 29.x at Tiki Wiki CMS Groupware / Tiki Commits: 37ffa19e by Domeshow Emmanuel at 2026-08-08T01:29:15+03:00 [FIX] Cookie consent: preserve category keys in defaults --- * [FIX] Cookie consent: preserve category keys in defaults --- * [FIX] Cookie consent: preserve category keys in defaults --- * [FIX] Cookie consent: preserve category keys in defaults See merge request tikiwiki/tiki!10864 (cherry picked from commit 2a05c00ca5a9f65fac98389839a7ecfe027a0f3e) 871f61e1 [FIX] Cookie consent: preserve category keys in defaults Co-authored-by: Domeshow Emmanuel <[email protected]> See merge request tikiwiki/tiki!10865 (cherry picked from commit 87583421e32c94092dd9820056b8fe0ae4fa6c2e) b910bf1a [FIX] Cookie consent: preserve category keys in defaults Co-authored-by: Domeshow Emmanuel <[email protected]> See merge request tikiwiki/tiki!10868 - - - - - 1 changed file: - lib/CookieConsent/CookieConsentLib.php Changes: ===================================== lib/CookieConsent/CookieConsentLib.php ===================================== @@ -93,7 +93,7 @@ class CookieConsentLib $defaultConsentPreferences = [ 'action' => 'customized', 'consentGiven' => false, // Helps determine if the user has given consent or not - 'categories' => array_map(fn() => false, array_keys(self::getCookieCategories())) // Default to false for all categories + 'categories' => array_fill_keys(array_keys(self::getCookieCategories()), false) // Default to false for all categories ]; $consentPreferences = null; /* FIXME: This is incomplete. There are at least the following cases to deal with: View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/37ffa19efa7f3c2599320e8291f25c1c8283f618 -- View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/37ffa19efa7f3c2599320e8291f25c1c8283f618 You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help _______________________________________________ TikiWiki-cvs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs