Closed
Bug 1207366
Opened 10 years ago
Closed 8 months ago
Default sort columns restricted by backend code
Categories
(MailNews Core :: Backend, defect)
MailNews Core
Backend
Tracking
(Not tracked)
RESOLVED
FIXED
136 Branch
People
(Reporter: aryx, Assigned: darktrojan)
References
Details
Attachments
(1 file)
The backend restricts default sorting columns like this:
> if (*aDefaultSortType < nsMsgViewSortType::byDate ||
> *aDefaultSortType > nsMsgViewSortType::byAccount)
> *aDefaultSortType = nsMsgViewSortType::byDate;
https://dxr.mozilla.org/comm-central/source/mailnews/db/msgdb/src/nsMsgDatabase.cpp#5635
Custom, Received and Correspondent have higher values than Account:
https://dxr.mozilla.org/comm-central/source/mailnews/base/public/nsIMsgDBView.idl#59
alta88, you recently worked on sorting of custom columns, do you of anything which would break or cause issues if we increase the upper limit to byCorrespondent?
![]() |
Reporter | |
Updated•10 years ago
|
Flags: needinfo?(alta88)
that just looks to be a sanity check, written before the relatively recent received and correspondent, which were added after custom. the range can include up to correspondent but must exclude custom, which is meaningless without a column id (added by an extension).
Flags: needinfo?(alta88)
Updated•3 years ago
|
Severity: normal → S3
Updated•3 years ago
|
status-firefox44:
affected → ---
Comment 2•2 years ago
|
||
Is this still an issue with the new 115 code?
Severity: S3 → S4
Flags: needinfo?(geoff)
Assignee | ||
Comment 4•8 months ago
|
||
This just updates the maximum allowed value for the preference, since new values have been added since it was written.
Updated•8 months ago
|
Assignee: nobody → geoff
Status: NEW → ASSIGNED
Assignee | ||
Updated•8 months ago
|
Keywords: checkin-needed-tb
Target Milestone: --- → 136 Branch
Pushed by kaie@kuix.de:
https://hg.mozilla.org/comm-central/rev/be11e848f508
Allow setting the default sort column to all useful values. r=aleca
You need to log in
before you can comment on or make changes to this bug.
Description
•