Closed (duplicate)
Project:
Inline Entity Form
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 May 2012 at 15:36 UTC
Updated:
13 Jun 2012 at 23:05 UTC
When ordering variations by dragging them up/down, order is not saved. 1.x-dev (2012-Apr-25).
Gr3fweN
Comments
Comment #1
lastar84 commentedSame problem. Neither drag-and-drop nor manually entered row weights are saved - it seems to default to the order in which items were added, beginning with 0, 1, 2 and so on.
Comment #2
leanderl commentedI'm having the same issue. Noticed that order is saved if you click "edit" or "add" variation and then cancel (or save). So something is missing to trigger the save when you just reorder the variations... I've spent hours and hours going through the code but can't find the right angle...
Comment #3
leanderl commentedWell, I'm not sure what the heck I'm doing. But it does seem to work well if you put the delta loop before the "abort validation" code like thus (row 699 of inline_entity_form.module):
original code was (row 699-716 of inline_entity_form.module) :
I guess one of the maintainers should look at the consequences of doing this. But it fixes the problem although it could have other repercussions I'm not aware of.
Comment #4
minorwm commentedSame problem here as well. leanderl solution seemed to work for me though.
Comment #5
eme commentedYes indeed, it works very well. It was saving the order only when triggering any AJAX action again, but with this little hack, that's perfect.
Thx !
Comment #6
bojanz commentedFixed in #1489436: Clicking the main save button should save all inline entity forms.
Thanks, guys.