Undefined array key 1 in Drupal\points\Plugin\Derivative\PointsLocalTask->getDerivativeDefinitions()

Created on 7 February 2024, 12 months ago
Updated 27 February 2024, 11 months ago

Problem/Motivation

Undefined array key 1 in Drupal\points\Plugin\Derivative\PointsLocalTask->getDerivativeDefinitions()

Steps to reproduce

Install the module and visit admin/structure/points

You will see the warning:

Warning: Undefined array key 1 in Drupal\points\Plugin\Derivative\PointsLocalTask->getDerivativeDefinitions() (line 66 of modules/contrib/points/src/Plugin/Derivative/PointsLocalTask.php).

Proposed resolution

Check the array index exists.

Remaining tasks

Review the patch

User interface changes

None

API changes

None

Data model changes

None

πŸ“Œ Task
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada adriancid Montreal, Canada

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024