Fix: calendar color was not updated when folder name wasn't changed

This commit is contained in:
Aleksander Machniak (Kolab Systems) 2011-06-28 11:09:04 +02:00
parent 1f387da25a
commit 697c06560b

View file

@ -185,8 +185,8 @@ class kolab_driver extends calendar_driver
$id = rcube_kolab::folder_id($newfolder);
// save color in user prefs (temp. solution)
$prefs['kolab_calendars'] = $this->rc->config->get('kolab_calendars', array());
$prefs['kolab_calendars'][$id]['color'] = $prop['color'];
unset($prefs['kolab_calendars'][$prop['id']]);
$prefs['kolab_calendars'][$id]['color'] = $prop['color'];
$this->rc->user->save_prefs($prefs);