Cannot store Multivalue Entity reference revisions field values

Created on 8 May 2025, 4 months ago

Problem/Motivation

While having an Entity reference revisions field (like Paragraphs) with Unlimited values applied in Opigno Activity, I cannot store more the 1 value.
This issue appeared after updating from 3.1 to 3.2

Steps to reproduce

Create an Opigno Activity type that has Entity reference revisions field with Unlimited values.
To create an Activity type go to "/admin/structure/opigno_activity_type/add" or modify an existing one for testing.

Proposed resolution

After an investigation this appears to be issue with "$form_state->disableCache();" in "OpignoActivityForm.php" file that was added in 3.2 version.

I suggest either review this line of code or remove it fully.

πŸ› Bug report
Status

Active

Version

3.2

Component

Code

Created by

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

Comments & Activities

  • Issue created by @engerrs
  • πŸ‡ΊπŸ‡ΈUnited States agileadam Maine, USA

    This same line of code, when commented-out, fixes an issue where I cannot add/update/remove paragraphs on an Opigno Activity entity.

    With a Paragraph called "Transcript"

    Before (with the line in place):

    • Edit Activity. Click "Add Transcript", fill paragraph fields, hit "Save", entity saves, edit activity, no Transcript paragraph present
    • Edit Activity with existing Transcript. Click "Remove", click "Confirm removal", hit "Save", entity saves, edit activity, transcript still exists

    After (with line commented out):

    • Edit Activity. Click "Add Transcript", fill paragraph fields, hit "Save", entity saves, edit activity, transcript exists
    • Edit Activity with existing Transcript. Click "Remove", click "Confirm removal", hit "Save", entity saves, edit activity, transcript no longer exists
Production build 0.71.5 2024