Closed (fixed)
Project:
Commerce Fieldgroup Panes
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Jan 2012 at 12:38 UTC
Updated:
24 Aug 2012 at 14:51 UTC
Jump to comment: Most recent file
Comments
Comment #1
mrfelton commentedSpent the past 12 hours trying to track this. Huge great big POST variables names like this were being stripped out, and never getting back from the browser to the server:
['commerce_fieldgroup_pane__group_cw_fundraising_comments|commerce_order|commerce_order|form']['field_cw_fundraising_comments']['und'][0]['field_cw_fundraising_name']['und'][0][value]
I don't see any need for great big variable names like this. Attached patch switches from using $group->identifier to $group->group_name, turning the above into:
commerce_fieldgroup_pane__group_cw_fundraising_comments[field_cw_fundraising_comments][und][0][field_cw_fundraising_name][und][0][value]
Still pretty long, but it gets things going again at least. All we are loosing from the id is "|commerce_order|commerce_order|form" which I dont think really helps. The name is unique enough, no?
Comment #2
mrfelton commentedUpdated patch, removes now unused variables (actually, they were never used).
Comment #3
simon georges commentedThis is badly needed (maybe because something like https://bugs.php.net/bug.php?id=33786 too?).
On some platforms, the variables are dropped during submission (they are not in $_POST, although they have been posted by the browser).
Anyway, the patch works for me, thanks (a lot)!
Comment #4
pcambraCommitted an slightly changed version, thanks a lot!