T4428: Fix removing calendar categories in settings
This commit is contained in:
parent
4244253ca0
commit
8a72ceb940
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue