Fatal error: Cannot redeclare gin_preprocess_checkbox_tree()

Created on 18 December 2024, 4 months ago

Problem/Motivation

When updating 4.0.x-dev after the 3.0-RC16 got released I get the following error:

Fatal error: Cannot redeclare gin_preprocess_checkbox_tree() (previously declared in /var/www/html/web/themes/contrib/gin/includes/form.theme:237) in /var/www/html/web/themes/contrib/gin/includes/form.theme on line 245

In fact, the following code got added by 0c0ef60 and duplicated by a5c8e6e:

/**
 * Implements hook_preprocess_HOOK() for checkbox_tree.
 */
function gin_preprocess_checkbox_tree(array &$variables) {
  $variables['#attached']['library'][] = 'gin/term_reference_tree';
}

3.0-RC16 is not affected by this code duplication.

🐛 Bug report
Status

Active

Version

4.0

Component

Code

Created by

🇦🇹Austria mvonfrie

Live updates comments and jobs are added and updated live.
  • Quick fix

    Very small and simple change. Preferred over Quickfix.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024