- πΊπ¦Ukraine david-b Kropyvnytskyi
Patch #17 looks to work for me, but doesn't work for the current version of the module. Created a patch based on patch #17
- π΅π°Pakistan alinouman
#31 works good for me. Thanks david-b for your help.
- Merge request !81Issue #3104901: Entity Browser used in a entity referenced field of a layout builder custom block is not working β (Open) created by acbramley
- πΊπΈUnited States cboyden
The code in the MR (built from patch 31) is working for me, it fixes a very tricky issue that we've been wrangling for a while.
- Status changed to Needs review
26 days ago 7:10am 19 August 2025 - π©πͺGermany Anybody Porta Westfalica
Let's proceed with the MR. @cboyden could you take this further maybe, so we can get this fixed?
- πΊπΈUnited States dsnopek USA
With the changes in #31, I think that most of the code in EntityReferenceBrowserWidget::formElementEntities() below the call to
$this->getEntitiesByTargetId()
won't ever run, because if there are any existing items, that function will always be able get them. This is quite a bit of code - I think lines 774 to 833 (~60 lines) become dead code, with only the logic for loading for the first time (lines 833 to 845) still being relevant.Assuming I'm right about this, then this patch should probably also remove all that unused code, so it isn't there to confuse people reading the code in the future. :-) However, the fact that this makes so much dead code makes me nervous that there is some edge case covered by that code, and removing it will break something? That said, this patch is fixing this problem for me, and I haven't stumbled on whatever that edge case might be yet