Needs work
Project:
Field tools
Version:
8.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Nov 2022 at 07:57 UTC
Updated:
21 Nov 2025 at 14:35 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
holo96 commentedComment #3
holo96 commentedComment #4
holo96 commentedComment #5
anybodyI can confirm indeed the variable is never defined!
So it will always be unset here without the fix:
Where I'm not sure is, if the
$destination_bundle_field_names = $destination_display->getComponents();should be inside the field_groups condition?So I guess a maintainer will be able to answer this quickly and fix the clear bug. I won't set this RTBC, because I'm not deep enough into this here.
Comment #6
anybodySetting priority to major as this is a clear code bug which breaks expected (and existing) functionality (and seems easy to solve, once a maintainer has a short look).
Don't kill me ;) ;)
Comment #7
anybodyComment #8
joachim commentedgetComponents() does not return field names!
Comment #9
holo96 commented@joachim Is naming only issue you have with this?
That's how it is named in module currently only variable init is missing, I guess it went missing in some point
I will create new patch..
Comment #10
anybodyJust ran into this again, so I'll try to place this on our agenda.
Comment #12
grevil commentedI can confirm that the patch fixes the issue! Very weird, that the variable declaration of
was somehow removed.
Comment #14
grevil commentedI applied @holo96's patch as an MR changed the point of initialization and renamed the variable, please review!
EDIT: Just saw, that a couple of auto formatting changes were committed as well, hope that's fine.
Comment #15
anybodyThank you @Grevil, that's indeed a crazy reason for the bug ;D
I think the fixes are okay, as it's not too many. RTBC! Would be great to have this fixed and Field groups support back again!
Comment #16
mattlc commentedHello, thanks for the work.
One missing thing. The code is not taking care of nested field groups.
As far as this is a 1 Year + RTBC issue, I think I can propose this :
I can update the branch if modification is OK for you.
I also would like to suggest the ability to choose whether or not the user wants to copy empty groups.
Comment #17
grevil commented@mattlc, feel free to modify the MR!