Closed (fixed)
Project:
Simplenews Content Selection
Version:
6.x-2.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Aug 2010 at 08:34 UTC
Updated:
1 Sep 2010 at 20:10 UTC
Hi,
I don't know if the bug will be easy to reproduce : using scs, I'm selecting two nodes, as the order they are displayed on the "sort" screen is ok, I validate, but the order in the final screen is wrong, the two nodes are inverted. If, on the "sort" screen, I move them, and set them in their original order, they are correctly sorted in the final screen...
I'll try to investigate further and keep you posted with debug elements when I can.
Regards,
Comments
Comment #1
simon georges commentedHi,
I did a little digging : when you don't manually sort the nodes, the submission of the form renders every node with a weight of 0, so the
asort($nodes)sort them by nid, whereas on the first screen they weren't sorted by nid.Maybe the best way to solve this is to sort the node table by nid on the "sort" screen ?
Regards,
Comment #2
dtrdewaele commentedNice work on this. I'll see what I can do to fix this asap.
Comment #3
dtrdewaele commentedFixed this in the development release of the module.
I added a counter to the code, so the default value of the weight isn't 0 anymore but 0, 1, 2, ...
Thx for digging.
Comment #4
simon georges commentedHi,
I confirm this is fixed (at least on the test case I had) with release. 6.x-1.6.
Nice work !