diff --git a/inc/ui/collection-edit.php b/inc/ui/collection-edit.php index 9e672295..3e66e3ca 100644 --- a/inc/ui/collection-edit.php +++ b/inc/ui/collection-edit.php @@ -108,9 +108,10 @@ if ( $can_write_collection && $editor->IsSubmit() ) { $path = $editor->Value('dav_name'); $user_no = $editor->Value('user_no'); $username = $editor->Value('username'); + param_to_global('mode'); include_once('caldav-PUT-functions.php'); controlRequestContainer( $username, $user_no, $path, false, ($publicly_readable == 'on' ? true : false)); - import_collection( $ics, $user_no, $path, $session->user_no ); + import_collection( $ics, $user_no, $path, $session->user_no, ($mode == 'append') ); $c->messages[] = sprintf(translate('Calendar "%s" was loaded from file.'), $path); } else {