Closed Bug 278621 Opened 20 years ago Closed 20 years ago

"sort by: calendar name" still sorts after date

Categories

(Calendar :: Sunbird Only, defect)

Sunbird 0.2
x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: mozillabugs, Assigned: mostafah)

References

Details

Attachments

(1 file, 1 obsolete file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a5) Gecko/20050111 Mozilla Sunbird/0.2RC2

having multiple calendar-files, sorting by calendar name does not work correctly:
i have three different calendars: a regular one, one for birthdays and one for
holidays. the holiday calendar contains all holidays from 2002 to 2007 (not as
reoccuring events but single events).
sorting by calendar names still sorts after date.

Reproducible: Always

Steps to Reproduce:
1. multiple calendars needed
2. display "calendar names"
3. click the column header to sort after calendar names
bug appears ins sunbird 0.2RC2.
Version: Sunbird 0.2RC1 → Sunbird 0.2RC2
Status: UNCONFIRMED → NEW
Ever confirmed: true
(patch -p 2 -i file.patch)

Problem is compareEvents function does not have a clause for calendar name.

This patch adds it.

Tested against 0.2 branch:  adding calendar name column and then clicking the
header does sort by that column.
Attachment #171595 - Flags: first-review?(mostafah)
*** Bug 288441 has been marked as a duplicate of this bug. ***
(patch -l -p 2 -i file.patch)

Compares event.parent.name as strings.
Depends on bug 295164 to display name column.
Attachment #184285 - Flags: first-review?(mvl)
Depends on: 295164
Attachment #171595 - Attachment description: unifinder.js patch: add calendar name clause to compareEvents → unifinder.js patch: add calendar name clause to compareEvents (0.2 branch)
Attachment #171595 - Attachment is obsolete: true
Attachment #171595 - Flags: first-review?(mostafah)
Blocks: 295212
Comment on attachment 184285 [details] [diff] [review]
for sorting event list, add clause to compare by calendar name 

r=mvl
Attachment #184285 - Flags: first-review?(mvl) → first-review+
patch checked in
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
The bugspam monkeys have been set free and are feeding on Calendar :: Sunbird Only. Be afraid for your sanity!
QA Contact: gurganbl → sunbird
Status: RESOLVED → VERIFIED
Version: Sunbird 0.2RC2 → Sunbird 0.2
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: