[TikiWiki-commits] [Git][tikiwiki/tiki][30.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 <6a7659b788419_3819f6cc28892@gitlab-sidekiq-low-urgency-cpu-bound-v2-57d89f4484-d5st7.mail>

Domeshow Emmanuel pushed to branch 30.x at Tiki Wiki CMS Groupware / Tiki


Commits:
87583421 by Domeshow Emmanuel at 2026-08-08T01:08:39+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

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

- - - - -


1 changed file:

- lib/CookieConsent/CookieConsentLib.php


Changes:

=====================================
lib/CookieConsent/CookieConsentLib.php
=====================================
@@ -95,7 +95,7 @@ class CookieConsentLib
         $consentPreferences = [
             '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
         ];
 
         // First, try to read the consent cookie from browser cookie



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/87583421e32c94092dd9820056b8fe0ae4fa6c2e

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/87583421e32c94092dd9820056b8fe0ae4fa6c2e
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.