Fix LanguageNegotiationContentEntity::getLangcode() errors thrown

Created on 24 April 2020, about 5 years ago
Updated 31 January 2023, about 2 years ago

Problem/Motivation

If the passed $request argument is NULL (or none), an error is thrown, for the following code: $request->query->get(static::QUERY_PARAMETER);
(https://git.drupalcode.org/project/drupal/-/blob/8.9.x/core/modules/lang...)

Proposed resolution

Check whether $request is set, before trying the access the query property.

πŸ› Bug report
Status

Fixed

Version

10.0 ✨

Component
Language systemΒ  β†’

Last updated 7 days ago

  • Maintained by
  • πŸ‡©πŸ‡ͺGermany @sun
Created by

πŸ‡¨πŸ‡­Switzerland stefanos.petrakis@gmail.com Biel, Switzerland

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