Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
kolab
roundcube-plugins
Commits
e5de70b8
Commit
e5de70b8
authored
Jul 06, 2015
by
Daniel Morlock
Browse files
Fix creating itip import via mail when falling back to the default calendar.
parent
98f9165c
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/calendar/calendar.php
View file @
e5de70b8
...
...
@@ -3055,10 +3055,25 @@ class calendar extends rcube_plugin
// find writeable calendar to store event
$cal_id
=
!
empty
(
$_REQUEST
[
'_folder'
])
?
rcube_utils
::
get_input_value
(
'_folder'
,
rcube_utils
::
INPUT_POST
)
:
null
;
$driver
=
$this
->
get_driver_by_cal
(
$cal_id
);
$calendar
=
null
;
$driver
=
null
;
if
(
$cal_id
)
{
$driver
=
$this
->
get_driver_by_cal
(
$cal_id
);
$calendars
=
$driver
->
list_calendars
(
false
,
true
);
$calendar
=
$calendars
[
$cal_id
];
}
$dontsave
=
(
$_REQUEST
[
'_folder'
]
===
''
&&
$event
[
'_method'
]
==
'REQUEST'
);
$calendars
=
$driver
->
list_calendars
(
calendar_driver
::
FILTER_PERSONAL
);
$calendar
=
$calendars
[
$cal_id
];
// select default calendar except user explicitly selected 'none'
if
(
!
$calendar
&&
!
$dontsave
)
$calendar
=
$this
->
get_default_calendar
(
true
,
$event
[
'sensitivity'
]
==
'confidential'
);
if
(
!
$driver
)
{
$driver
=
$this
->
get_driver_by_cal
(
$calendar
[
"id"
]);
}
// select default calendar except user explicitly selected 'none'
if
(
!
$calendar
&&
!
$dontsave
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment