Closed (fixed)
Project:
Commerce Fieldgroup Panes
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Feb 2013 at 22:47 UTC
Updated:
4 Aug 2016 at 17:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jrbThe attached patch fixes the sort problem.
Comment #2
fietserwinI ran into the same problem and can confirm that the patch does solve the problem. The weight assignment can be optimized a bit, but that's also a matter of coding preferences and can be changed by the module maintainer to is own preferences. so, please commit.
Comment #3
znerol commentedThere is no need to manually extract the weight from the field instance,
field_view_fieldactually adds an appropriate '#weight' key. However this only takes effect when all fields are rendered together in one call todrupal_render.Comment #4
fietserwinGreat, this is so much better. I tested this patch and it works as expected: RTBC.
Comment #5
jfarry commentedAlso tested this. Works great :)
Comment #6
joelpittetSweet, thanks @znerol
Comment #7
watergate commentedSimple, but effective. Thanks for the patch!
Comment #9
pcambraGreat solution @znerol, thanks for the patch!