Closed Bug 412258 Opened 16 years ago Closed 16 years ago

A category color is not displayed if the category name contains more then 2 words

Categories

(Calendar :: Calendar Frontend, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: omar.bajraszewski, Assigned: Fallen)

Details

Attachments

(1 file)

It may be related to bug 355874. I can reproduce it with Sunbird&Lightning 0.7 and 0.8pre

Steps to reproduce:
1)Install Lightning and change default calendar color to i.e. green
2)Create a new category "Birthdays and anniversaries" and set color i.e. red
3)Create a new event with the category

Result:
The event is displayed without the category color
Flags: wanted-calendar0.8?
I checked pref.js. The category I've created looks like:
user_pref("calendar.category.color.birthdays_and anniversary", "#CCFFFF");

If it looks like:
user_pref("calendar.category.color.birthdays and anniversary", "#CCFFFF");
it may be no problem with displaying a color
Only the first space was replaced correctly. This patch moves the fixing to a general function which replaces all spaces with underscores. This will also ease up bug 321010.
Assignee: nobody → philipp
Status: NEW → ASSIGNED
Attachment #296944 - Flags: review?(Berend.Cornelius)
OS: Windows XP → All
Hardware: PC → All
Version: Mozilla 1.8 Branch → unspecified
Comment on attachment 296944 [details] [diff] [review]
Fix category names

Philipp asked me to take over if I find time. Patch works as expected.
Attachment #296944 - Flags: review?(Berend.Cornelius) → review+
Checked in on HEAD and MOZILLA_1_8_BRANCH

-> FIXED
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Flags: wanted-calendar0.8?
Resolution: --- → FIXED
Target Milestone: --- → 0.8
verified with Lightning 2008012609 and Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.1.12pre) Gecko/20080123 Calendar/0.8pre
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.