Assignment operator instead of comparison operator in alter.inc

Created on 9 September 2022, about 2 years ago
Updated 11 August 2023, over 1 year ago

Problem/Motivation

Themer getting this error when UI Kit set as theme and view set up to output collection and items in collection:

Error: Call to a member function getRegion() on null in uikit_theme_suggestions_block_alter() (line 46 of /var/www/drupal/web/themes/contrib/uikit/includes/alter.inc)

Steps to reproduce

Proposed resolution

Resolution that worked for us was to change this:

if (isset($variables['elements']['#id']) && $id = $variables['elements']['#id']) {

to this:

if (isset($variables['elements']['#id']) && $id == $variables['elements']['#id']) {

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States borwickja

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.

Production build 0.71.5 2024