- Issue created by @duckydan
- π¬π§United Kingdom John Cook
@duckydan, can you provide a link to the theme that you are using? Thereβs a few using Bootstrap.
And can you check if the problem is still there if you use Claro as the administration theme.
Thanks.
- πΊπΈUnited States duckydan
Hi,
I am using Bootstrap5. https://www.drupal.org/project/bootstrap5 β
The website allows members to do a lot of stuff, not just make nodes. If they do add node content, and a different theme appears, would be a jarring and inconsistent UX, so Iβm not using a separate admin theme.
Iβll set it to Claro in my dev environment and see if it still happens.
- πΊπΈUnited States duckydan
@john-cook I tried Claro on Chrome and Safari. Same results. Posted screen shots.
However, I did notice that it stops at an entity that has a non-alphabetical character (in this case, a question mark). Because of that, Drupal sticks the title in quotation marks. Could that be the condition is fails in?
- π¬π§United Kingdom John Cook
I've managed to replicate the issue in both Claro and Bootstrap.
This happens when the user has entered a non-existent entity when the field doesn't have the "Create referenced entities if they don't already exist" checked. When the page is re-loaded, the replacement fails which crashes the JS runtime.
- π¬π§United Kingdom John Cook
@duckydan
I think it's because of the quotes and the comma. I need to do some better regex.
- πΊπΈUnited States duckydan
Thanks for checking this out!
If it helps, all the entities are there, and all four fields have the option of "Create referenced entities if they don't already exist" checked.
- πΊπΈUnited States duckydan
When I remove that one reference, save the form, and go back in, it works perfectly.
- @john-cook opened merge request.
- Status changed to Needs review
over 1 year ago 3:20pm 7 October 2023 - π¬π§United Kingdom John Cook
@duckydan
I've created a patch that should fix the issue. Can you give it a try please.
- πΊπΈUnited States duckydan
@john-cook It works perfectly! I can reference things with the characters, and after I save and go back in, the entire node displays with no ID numbers.
Thank you so much! This is really big for me.
A new user to the site asks, "What are those numbers?" and when I explain about entity IDs, they quickly regret asking! LOL.
- Status changed to RTBC
over 1 year ago 7:27pm 7 October 2023 -
John Cook β
committed f0062e3c on 1.x
Issue #3392298 by John Cook, duckydan: Multiple entity reference fields
-
John Cook β
committed f0062e3c on 1.x
- Status changed to Fixed
over 1 year ago 7:44pm 7 October 2023 Automatically closed - issue fixed for 2 weeks with no activity.