Add TOC Type form error - default options

Created on 22 March 2021, about 4 years ago
Updated 16 January 2025, 3 months ago

Problem/Motivation

Creating a new TOC type throws notices because the $options array is not populated.

Notice: Trying to access array offset on value of type null in Drupal\toc_api\TocTypeForm->buildForm() (line 142 of modules/contrib/toc_api/src/TocTypeForm.php).

Steps to reproduce

Click Add Table of contents type button.

Proposed resolution

Make options plugin properties or return default?

Remaining tasks

Check patch or recommend another way.

User interface changes

None.

API changes

None.

Data model changes

TocType class properties?

πŸ› Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mortona2k Seattle

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