From 9b5554eac8bbd0548b45083a7397996f46a79eb2 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Tue, 17 Jan 2012 08:08:36 +1300 Subject: [PATCH] Make the 'append' option work. --- inc/ui/collection-edit.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 {