Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.6
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Jul 2009 at 11:54 UTC
Updated:
4 Dec 2009 at 21:20 UTC
This is presumably an edge case for those of us outputting views with over 25 (and over 51) fields.
There is some weird behaviour when rearranging fields, it will use the full -25 to 25 to order the fields, but when you update, then re-edit the order, it always starts at 1, ruining the order that i've just set. (not great, especially with so many fields).
I'm presuming this is a views thing, not core, but i could be wrong. I'm still looking for a solution, but i thought i'd put it out to the community.
Thanks
Comments
Comment #1
burgs commentedOk, one culprit is on line 2032 of views/includes/admin.inc
changing this:
to something like this:
will instantly help, although, there is still the issue of the weights resetting back to start at 1 rather than -25 (or -100 in the second instance).
Comment #2
smscotten commentedI ran into this same issue. It would be nice if this made it in. I can confirm that bugs's fix works. For the moment, I've made the change, but I'm going to have to patch code in a production site to work around this.
Comment #3
awolfey commentedThis is working for me. The ugly alternative is to export the view, rearrange the fields, import into a new view.
Comment #4
davej commentedI ran into this problem and have been successfully using delta 80 (before finding this issue). One of my displays has just over 100 fields (easily happens if you have Matrix Fields) and I haven't run into problems since setting delta to 80. When first investigating the issue I noticed the problem of starting from 1 but don't seem to have been bitten by this since. Maybe because as this view grew, I turned off javascript for views due to getting the slow script dialog from Firefox every time - perhaps this involves different processing when rearranging fields?
+1 for getting this patch in.
People using displays with many fields may be interested in this issue: Enlarge views_display.display_options.
Dave
Comment #5
merlinofchaos commentedOk, this is in.