Add the allow_new setting also for the simple widget

Created on 12 October 2023, about 1 year ago
Updated 7 January 2024, 12 months ago

Problem/Motivation

We have entity reference fields that are multiple and are using inline entity form simple.

The entities attached to the entity reference field are controlled programmatically and would like a simple option to disable the add more button on inline entity form simple widget.

Proposed resolution

Move the 'allow_new' => TRUE, widget setting to InlineEntityFormBase.php

✨ Feature request
Status

Needs work

Version

3.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom lexsoft London

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024