Closed (fixed)
Project:
Editable Fields
Version:
1.0.2
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
12 Jul 2024 at 09:52 UTC
Updated:
8 Feb 2025 at 12:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
joco_sp commentedWhen debugging the EditableFieldsFieldFormatter.php on line 230, it looks like it's going into a loop and if I comment out this whole part, the node is shown with the editable field.
I think that the problem is in the return, because it is returning the same field on the same display and therefore it goes into a loop.
'field' => $entity->get($field_name)->view($view_mode),If I change the "Select fallback display mode:" to "teaser" it works.
PS: I think also the conditional states are not working on the field formatter.
Comment #3
joco_sp commentedExample of the working widget. As I mentioned above, I had to change the "Select fallback display mode:" to "teaser".
I'm not sure what would be the best fix for the code. As a temporary solution I am creating a new display view for that mode with the wanted fields and selecting it as a fallback.
Comment #4
gilmord@joco_sp I think this one is fixed here: https://www.drupal.org/project/editablefields/issues/3465743
not really "fixed" but I excluded current display to be fallback option, as it cause a loop and makes no sense, pushed this to dev version of the module
Comment #5
gilmord