Activate storing calendar color in IMAP annotations according to KEP 9,12
This commit is contained in:
parent
c9e4b6ab1a
commit
e1eca18a3c
2 changed files with 3 additions and 2 deletions
|
@ -153,6 +153,7 @@ class kolab_calendar
|
||||||
public function get_color()
|
public function get_color()
|
||||||
{
|
{
|
||||||
// color is defined in folder METADATA
|
// color is defined in folder METADATA
|
||||||
|
// FIXME: Kolab_Folder::getKolabAttribute() only reads value.shared; value.priv should be considered first
|
||||||
if ($color = $this->storage->_folder->getKolabAttribute('color')) {
|
if ($color = $this->storage->_folder->getKolabAttribute('color')) {
|
||||||
return $color;
|
return $color;
|
||||||
}
|
}
|
||||||
|
|
|
@ -315,7 +315,7 @@ class kolab_driver extends calendar_driver
|
||||||
if (!($result = rcube_kolab::folder_create($folder, 'event', false)))
|
if (!($result = rcube_kolab::folder_create($folder, 'event', false)))
|
||||||
$this->last_error = rcube_kolab::$last_error;
|
$this->last_error = rcube_kolab::$last_error;
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
// save color in METADATA
|
// save color in METADATA
|
||||||
// TODO: also save 'showalarams' and other properties here
|
// TODO: also save 'showalarams' and other properties here
|
||||||
if ($result && $prop['color']) {
|
if ($result && $prop['color']) {
|
||||||
|
@ -324,7 +324,7 @@ class kolab_driver extends calendar_driver
|
||||||
if ($meta_saved)
|
if ($meta_saved)
|
||||||
unset($prop['color']); // unsetting will prevent fallback to local user prefs
|
unset($prop['color']); // unsetting will prevent fallback to local user prefs
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
return $result ? $folder : false;
|
return $result ? $folder : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue