- Issue created by @ahmad aziz
- 🇩🇪Germany a.dmitriiev
Ahmad Aziz, could you please make a screenshot of the whole page for field settings of this field_left, where you are trying to add the paragraph.
Normally on that line 560 in
Drupal\frontend_editing\Controller\FrontendEditingController
the variable$allowed_paragraphs
should be always an array. But I have never tested with "Reference method" that is not "Default". It seems that you have some other method selected, or some more paragraph related modules enabled. Your settings page would be interesting to see and it might help to include your use case to avoid the problems in the future.For now I will just add the check for type, to ensure that condition in query works properly, but it would be nice to see your settings.
Thank you.
- Merge request !63Issue #3443317: Adding Nested paragraphs with Frontend editing Throws error! → (Merged) created by a.dmitriiev
- Status changed to Needs review
8 months ago 9:35am 25 April 2024 - 🇵🇰Pakistan ahmad aziz
Here is the screenshot for field_left settings, Basically the nested paragraph(heading here) can be added when i edit the parent section paragraph but when i click on the plus button below the heading paragraph inside section paragraph, then it Throws the above error!
- 🇩🇪Germany a.dmitriiev
Thank you for the screenshot. It is still weird to me that the value for accordion is still passed instead of the empty array. Have you tried the fix from the MR? Does it help?
- 🇧🇪Belgium bramvandenbulcke
I'm also seeing this. Install: Drupal 10.3 with PHP 8.3.
I have nested paragraphs but it's also happening on normal paragraphs (without nesting). I'm also using exclude a lot on my paragraph fields.
- 🇩🇪Germany a.dmitriiev
I was able to reproduce the problem according to the screenshot from @ahmad aziz . So it happens when one selects "Exclude the items selected below" but do not select any items.
I have updated the MR.
- 🇵🇰Pakistan ahmad aziz
I have tested the provided patch against the current implementation, and it works perfectly! The issue I was experiencing has been resolved with the #9 patch file.
-
a.dmitriiev →
committed b364fff2 on 1.x
Issue #3443317 by a.dmitriiev, ahmad aziz, bramvandenbulcke: Adding...
-
a.dmitriiev →
committed b364fff2 on 1.x
Automatically closed - issue fixed for 2 weeks with no activity.