Problem/Motivation

in a complex setup involving Media Library and Inline Entity Form, I am encountering an issue when adding multiple items to a field.

Specifically, I have a field referencing a taxonomy vocabulary with a multiple-choice option with inline entity form complex, allowing either the selection of existing terms or the creation of new ones. However, when I insert an item through the integrated Media Library, only the first term gets saved, even if I add or create multiple terms (e.g., two terms).

This behavior seems to prevent proper handling of multiple terms in this specific context.

Version Drupal : 10.3.2
Version IEF: 3.0.0-rc20

Steps to reproduce

  1. Configure the Media Entity
    • Create a media entity M.
    • Add a field T to the media entity M, with a taxonomy term reference field allowing multiple values.
    • Edit the display settings for field T, enabling Inline Entity Form - Complex, with the option to add new terms or select existing ones.
  2. Set Up the Paragraph
    • Create a paragraph type P with a field referencing the media entity M.
    • Set the display mode of this field to use the Media Library.
  3. Create and Test in a Node
    • Create a node N and add a paragraph of type P referencing media entity M.
CommentFileSizeAuthor
#5 Capture d’écran.png133.26 KBnaim belkaied

Comments

naim belkaied created an issue. See original summary.

naim belkaied’s picture

Issue summary: View changes
naim belkaied’s picture

Title: ssue with Adding Multiple Terms via Media Library and Inline Entity Form » Adding Multiple Terms via Media Library and Inline Entity Form
naim belkaied’s picture

Issue summary: View changes
naim belkaied’s picture

StatusFileSize
new133.26 KB
abanoub.makram’s picture

I have the same issue, it only saves the first item

abanoub.makram’s picture

The issue happens when I use the "inline entity form simple" widget but when switched to the complex widget it's worked fine

jérôme dehorter’s picture

Hello,
Not working on our website with complex or simple mode. Only the first term is saved.