Closed (fixed)
Project:
Field Group
Version:
8.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
18 Jul 2018 at 19:58 UTC
Updated:
15 Apr 2020 at 11:30 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
nickdickinsonwildeBroken by #2878359: Field groups are not compatible with field layout - hate when there are no tests for a feature and hence it gets broken by other changes
Comment #3
rp7 commentedExperiencing the same issue.
Debugging this I noticed #process callbacks don't seem to be called for Inline Entity Forms.
A snippet from \Drupal\Core\Form\FormBuilder::doBuildForm():
The field_group_form_process callback is added while the above process callbacks are already being processed, and thus is never called.
The patch attached does fix my issue, but I'm not familiar with Field Group & Inline Entity Form all too well - I would suggest someone more experienced to look at this.
Comment #4
scottsawyerSo far it is working for me, at least resolved the immediate issue of the ief not rendering the field group ( and worse, totally mangling my form ). Great job.
Comment #5
superlolo95 commented+1 for #3
Comment #6
esolitosWhile patch #3 works fine, I'm not sure that's the best approach.
Comment #7
esolitosComment #8
hannessThanks, #3 works for me as well. I'm no coder = cannot review.
Setting to NW as tests are missing as mentioned in #2.
Comment #9
jienckebd commented#3 worked for me too.
Not sure why it's not the best approach, but it doesn't seem too harmful. I'm happy with anything that makes IEF work for fringe cases.
Comment #10
phernand42 commented#3 worked for me too
Comment #11
attheshow commented#3 is working for us.
Comment #12
anybodyFYI: I needed #3 for #2907094: Make paragraphs module working with field_group version 3.x with support for the field_layout module to work in paragraphs.
Comment #13
jagermonster commented#3 patch also seems to fix the issue with inline entity forms after updating this from beta1 to rc1
Comment #14
alisonI've got this issue, too, and #3 fixed it -- don't know enough to comment on the concerns expressed in the thread, but very happy with the outcome so far! Thank you! (And thank you, @Anybody, for mentioning it on the referenced paragraphs issue thread!)
Comment #15
hannessadded current state to the summary:
Comment #16
swentel commentedIt seems like the patches fixes the issue for some people. If they can reconfirm, or someone else can confirm as well, I will just commit the patch and open an issue for an explicit test as a task.
Comment #17
swentel commentedAlso, fwiw, I just tested this myself, and with the patch the groups are indeed rendered.
So setting RTBC, will assign it to zuuperman first to get his opinion on it as well, but I feel like it's fine.
Comment #18
dwwFWIW, +1 to #3 being RTBC. I've been using it for months without trouble. The rationale in #3 makes sense, the patch is extremely small. I don't know *that* much about the internals of IEF, but I've been bitten numerous times by the normal form workflows not doing what you expect, so instead of relying on #process callbacks, directly calling what we need makes sense to me.
Thanks,
-Derek
Comment #19
nils.destoop commentedTested and debugged. The patch is ok. The inline_entity_form_entity_form_alter is beïng called in the processing part of the form, so the #process is never executed.
The patch fixes it, but introduces the risk that someone else is also implementing the inline_entity_form_entity_form_alter hook. That module needs to come before fieldgroup.
Comment #21
nils.destoop commentedCommitted the patch and marking as fixed. Thx for the patch
Comment #23
dcrespin commentedHello, since the rc2 update, this patch is no longer compatible and I got the same problem as before.
I had to rollback to the rc1 version.
Comment #24
anruether@dcrespin : The committed code is still in, could you open a new issue with steps to reproduce?