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

span’s picture

Thanks 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.

andoresu’s picture

It 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

span’s picture

Status: Active » Fixed

Ah, 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

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.