mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-30 03:24:47 +00:00
Assign correct resourcetype on collection maintenance.
This commit is contained in:
parent
f63d6d082a
commit
f1510c7670
@ -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 = '<DAV::collection/>';
|
||||
if ( isset($_POST['is_calendar']) && $_POST['is_calendar'] == 'on' ) $resourcetypes .= '<urn:ietf:params:xml:ns:caldav:calendar/>';
|
||||
if ( isset($_POST['is_addressbook']) && $_POST['is_addressbook'] == 'on' ) $resourcetypes .= '<urn:ietf:params:xml:ns:carddav:addressbook/>';
|
||||
$_POST['resourcetypes'] = $resourcetypes;
|
||||
if ( $editor->IsCreate() ) {
|
||||
$c->messages[] = i18n("Creating new Collection.");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user