Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
8 Apr 2009 at 20:48 UTC
Updated:
30 Nov 2010 at 00:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
merlinofchaos commentedHmm. I think this should be a per field setting, not a global setting. I don't think a global setting is all that useful.
Comment #2
dawehnerYes, i didn't know a lot of views at that time :)
Couldn't the views table style read out
if sort handlers and use this?
What did you meaned with "make this a setting":
- A setting for the site admin?
- A setting for the developer :)
Comment #3
dagmar@dereine: Here is an example of settings applied per field #383994: Column align
Comment #4
funkmasterjones commentedwasn't too hard to implement looking at both patches
surprised nobody else go to it before me (that I know of)
a better patch would check if fields are numeric (desc) or alphanumeric (asc) a set a default automatically
but this is good enough for me
Derek
Comment #5
dawehner.
Comment #6
funkmasterjones commentedoops made a mistake heres the right one
I'd suggest removing the old default sort option at the bottom as its no longer needed
Comment #7
merlinofchaos commentedThe above patch had a couple of code style issues, plus it failed to add extra columns in the table where the column was not available. Plus, we should use dependency checking to make the default sort order field not visible if sorting is not enabled (since it is pointless).
Comment #8
dawehnerI'm wondering about:
On every other part of the patch it is used 'asc'
Comment #9
dawehnerAdditonal
made no sense for me.
It shoould be !empty
Here is a quick rerole
Comment #10
crashtest_ commentedLooks good and works as it should.
Edit: I think I was mistaken about this. Testing further.
Comment #11
merlinofchaos commentedSetting back to NR based on edit in #10
Comment #12
tic2000 commentedI did not see this patch and I modified a views module on a site to have this option.
The patch looks almost identical to what I did with 2 exceptions.
This is not needed.
Same as above.
I say the default order should be left as is.
Even better, the default order options should be removed and just leave the radios for the default column to sort on.
Powered by Dreditor.
Comment #13
merlinofchaos commenteddereine: Can you reroll based on #12?
Comment #14
dawehnerremoved the changes as described in #12
@tic2000
Can you look again at the test file?
Comment #15
tic2000 commentedThe text should be consistent with the default sort order (Ascending/Descending)
The patch seems to be for Views 6.3. I manually applied it to 6.2 and it works as expected.
If I have enough time tomorrow I will make a test site and install Views 6.3 and try on that too (just to be sure, I don't expect surprises on that version).
Beside the small issue above seems RTBC to me.
For convenience here is the patch resulted from the 6.2 branch.
Powered by Dreditor.
Comment #16
tic2000 commentedComment #17
dawehnerNew option description is definitive much better.
Comment #18
tic2000 commentedTo me it was confusing at first and consistency is always better.
Here is the patch for 6.3 with the changed text. merlinofchaos can decide which one he prefers.
Comment #19
merlinofchaos commentedSince this is a new feature, I have elected to place this only in Views 3. Committed to D6 and D7.