Closed Bug 1207366 Opened 10 years ago Closed 8 months ago

Default sort columns restricted by backend code

Categories

(MailNews Core :: Backend, defect)

defect

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?
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)
Severity: normal → S3

Is this still an issue with the new 115 code?

Severity: S3 → S4
Flags: needinfo?(geoff)

Sure is.

Flags: needinfo?(geoff)

This just updates the maximum allowed value for the preference, since new values have been added since it was written.

Assignee: nobody → geoff
Status: NEW → ASSIGNED
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

Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
See Also: → 1719796
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: