From f1510c76702bace608869e2db018070d0a7affa3 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Thu, 25 Feb 2010 09:40:55 +1300 Subject: [PATCH] Assign correct resourcetype on collection maintenance. --- inc/ui/collection-edit.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inc/ui/collection-edit.php b/inc/ui/collection-edit.php index 148d0858..d39accb9 100644 --- a/inc/ui/collection-edit.php +++ b/inc/ui/collection-edit.php @@ -69,6 +69,10 @@ if ( $can_write_collection && $editor->IsSubmit() ) { } $is_update = ( $_POST['_editor_action'][$editor->Id] == 'update' ); if ( $_POST['timezone'] == '' ) unset($_POST['timezone']); + $resourcetypes = ''; + if ( isset($_POST['is_calendar']) && $_POST['is_calendar'] == 'on' ) $resourcetypes .= ''; + if ( isset($_POST['is_addressbook']) && $_POST['is_addressbook'] == 'on' ) $resourcetypes .= ''; + $_POST['resourcetypes'] = $resourcetypes; if ( $editor->IsCreate() ) { $c->messages[] = i18n("Creating new Collection."); }