contact_menu_local_tasks_alter() should check whether $data['tabs'][0] is set

Created on 28 April 2015, over 9 years ago
Updated 16 August 2024, 4 months ago

Problem/Motivation

contact_menu_local_tasks_alter() accesses $data['tabs'][0] unconditionally, but that might not exist.

Specifically if someone alters the other tabs away.

I hit this bug due to another bug, where Drupal was trying to render the local tasks on a maintenance page in which case there are no local tasks (will open a separate bug for that).

Proposed resolution

Add a check for isset($data['tabs'][0]).

Remaining tasks

Convert to an MR.

User interface changes

API changes

๐Ÿ› Bug report
Status

Needs work

Version

11.0 ๐Ÿ”ฅ

Component
Contactย  โ†’

Last updated 8 days ago

Created by

๐Ÿ‡ฉ๐Ÿ‡ชGermany tstoeckler Essen, Germany

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Merge Requests

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