Make compatible with inline_entity_form 8.x-1.x-dev

Created on 2 February 2023, almost 2 years ago
Updated 22 August 2023, over 1 year ago

I have an entity type A with some required fields, and an entity type B with an optional entity reference field, referencing entity type A (using Inline entity form - Simple field formatter).
I cannot edit/create an entity of type B if the entity reference field is empty.

This is solved when using patch #24 from https://www.drupal.org/project/inline_entity_form/issues/3099844 πŸ› Required fields make an optional IEF (erroneously) required Needs work

However, it is impossible to use Inline Entity Form 8.x-1.x-dev with that patch in combination with this module.

This section of this module is not working:

"drupal/inline_entity_form": {
    "Changes are lost when collapsing a paragraphs subform including an inline_entity_form": "https://www.drupal.org/files/issues/2022-09-22/47-8.diff"
}

Result after composer install:

Package operations: 1 install, 0 updates, 0 removals
  - Syncing drupal/inline_entity_form (dev-1.x e8dfc71) into cache
Gathering patches for root package.
Gathering patches for dependencies. This might take a minute.
  - Installing drupal/inline_entity_form (dev-1.x e8dfc71): Cloning e8dfc71f19 from cache
  - Applying patches for drupal/inline_entity_form
    https://www.drupal.org/files/issues/2020-11-18/inline_entity_form-required_fields_optional_ief-3099844-15.patch (#3099844)
    https://www.drupal.org/files/issues/2023-01-25/3129760-13-compatibility-with-multiple-fields-remove-button.patch (#3129760)
    https://www.drupal.org/files/issues/2022-09-22/47-8.diff (Changes are lost when collapsing a paragraphs subform including an inline_entity_form)
   Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2022-09-22/47-8.diff

The last failed line comes from this module, not from my projects composer.json. There I only have apply the first 2 patches but not the failed one in my patches section:

            "drupal/inline_entity_form": {
                "#3099844": "https://www.drupal.org/files/issues/2020-11-18/inline_entity_form-required_fields_optional_ief-3099844-15.patch",
                "#3129760": "https://www.drupal.org/files/issues/2023-01-25/3129760-13-compatibility-with-multiple-fields-remove-button.patch"
            },
✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium flyke

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

Comments & Activities

Production build 0.71.5 2024