- Issue created by @scontzen
- Merge request !163545098-fix-for-compatibility_issue_with_the_viewsreference_module → (Open) created by Unnamed author
The cookies_addons_views module creates a compatibility issue with the viewsreference module that results in JavaScript errors.
Error encountered:
Uncaught TypeError: Cannot read properties of undefined (reading 'replace') at new Drupal.views.ajaxView (ajax_view.js:104-107)
1. Install cookies_addons_views module
2. Install viewsreference module
3. Create a view with viewsreference fields that is restricted by cookies_addons
4. Visit the page with cookie restrictions active
5. Observe JavaScript error in browser console
In cookies_addons_views_views_pre_render(), after removing the views AJAX settings, also remove the #viewsreference marker to prevent viewsreference from adding problematic settings.
- Apply the proposed fix to cookies_addons_views module
- Test with various viewsreference configurations
None - this is a bug fix that maintains existing functionality.
None - the changes are internal to the module's behavior.
None - this only affects JavaScript behavior and AJAX handling.
Active
1.3
Cookies Addons Views