Paragraph with no items in reference field causes fatal error

Created on 30 May 2024, 11 months ago

Problem/Motivation

The code tries to check for that case, but #items isn't set at all then, causing a PHP fatal error. It also hardcodes the field name, so that needs to move up.

This even happens when slider isn't enabled because above it also doesn't correctly check for having or not having a slider configured.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇨🇭Switzerland berdir Switzerland

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

Comments & Activities

  • Issue created by @berdir
  • 🇨🇭Switzerland berdir Switzerland

    So this was partially the fault of a custom patch that maybe should be pushed here, will think about it. There are still some issues here, like the wrong no-behaviour-setting check.

Production build 0.71.5 2024