6.0.0-beta6
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
3/31/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#13951] Background color for TimeObjects is not set correctly
*
Your Email Address
*
Spam protection
Enter the letters below:
._.. ..___. ,.__. | |_/ [__ \./ | | _|_| \| | |__|
Comment
> When implementing a custom module that adds new categories and events > through the listTimeObjectCategories() / listTimeObjects() API, I > noticed that Kronolith does not display the background color that is > defined by my categories, but uses the default one instead. When > accessing the calendar a second, third, etc time, my background color > is displayed correctly for the events of the respective category and > the category itself in the sidebar. > > After some investigation I found that Kronolith_CalendarManager does > not set the background color attribute when it creates > Kronolith_Calendar_External objects for every externally provided > category. It fails to do so only the first time as the category info > is cached in the session (including bg color). On second and further > calls, Kronolith_Calendar_External objects are created from the > cached version, including the background color attribute. Hence, the > bg color of external calendars is only displayed when the cached > version is used. > > Here is the fix: > > Replace this line in kronolith/lib/CalendarsManager.php: > > $this->_allExternal[$api . '/' . $name] = new > Kronolith_Calendar_External(array('api' => $api, 'name' => > $description['title'], 'id' => $name, 'type' => > $description['type'])); > > with > > $this->_allExternal[$api . '/' . $name] = new > Kronolith_Calendar_External(array('api' => $api, 'name' => > $description['title'], 'id' => $name, 'type' => $description['type'], > 'background' => $description['background'])); >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers