Closed (fixed)
Project:
Support fields
Version:
6.x-2.1-rc5
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Jul 2011 at 22:17 UTC
Updated:
4 Aug 2011 at 19:31 UTC
When I activate on a client a field that belongs to a group, all other fields that belong to that group get enabled for that client, and I can see them all (from that group) on the ticket creation.
Comments
Comment #1
span commentedThanks for your report, I will look into this and see if I can solve it. I've had many problems before with the group handling and I just can't wrap my head around the logic. Any patch or idea would be greatly appreciated.
Comment #2
andoresu commentedIt seems that after groups/fields are moved to $form['support']['support-fields-ahah-wrapper'] those fields which doesn't belong to a client are not erased (unset).
--Update--
I made some changes to your hook_form_alter:
http://pastie.org/private/i7lblxtqtbctlpkozipiq
Comment #3
span commentedAh, great stuff andoresu. I fixed some typos and committed to dev and created a new RC of version 6. Nice one, been struggling with this for a while to ge the groups working and any time I've looked at it I've locked my brain up. Seeing the easy elegant solution makes me happy :D