widget throws PHP warning when "Show all X items in form" is enabled

Created on 17 October 2023, 9 months ago
Updated 29 February 2024, 4 months ago

Description:

I am experiencing an issue when using the paragraph_table widget from the Paragraphs module.

Steps to reproduce:

  • Create a field of type Paragraph in a node type.
  • Set the maximum number of occurrences to 10.
  • Enable the "Show all 10 items in form" option in the paragraph_table widget settings.
  • Add a new node using this node type.
  • Expected behavior: The form should display with all 10 Paragraph items created without any errors.

Actual behavior:

I am receiving the following PHP warning :

Warning: Undefined array key 1 in paragraphs_preprocess_field_multiple_value_form() (line 367 of modules\contrib\paragraphs\paragraphs.module). paragraphs_preprocess_field_multiple_value_form(Array, 'field_multiple_value_form', Array)

🐛 Bug report
Status

Fixed

Version

1.21

Component

Code

Created by

🇫🇷France troesler

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

Comments & Activities

Production build 0.69.0 2024