T4428: Fix removing calendar categories in settings

This commit is contained in:
Aleksander Machniak 2018-11-16 12:10:11 +01:00
parent 4244253ca0
commit 8a72ceb940

View file

@ -773,6 +773,10 @@ class calendar extends rcube_plugin
$colors = (array) rcube_utils::get_input_value('_colors', rcube_utils::INPUT_POST);
foreach ($categories as $key => $name) {
if (!isset($colors[$key])) {
continue;
}
$color = preg_replace('/^#/', '', strval($colors[$key]));
// rename categories in existing events -> driver's job