mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-31 03:34:18 +00:00
Merge branch 'import-fix' into 'master'
Fixed broken import function (fixes #38) Removes a doubled code block introduced in commit 8e60bb3124e2cc4ff09f388e520f3b6935ffc733 causing imports to fail after the first one. See merge request !13
This commit is contained in:
commit
331e4dcccd
@ -897,21 +897,7 @@ EOSQL;
|
|||||||
$vcal->SetComponents($resource);
|
$vcal->SetComponents($resource);
|
||||||
$icalendar = $vcal->Render();
|
$icalendar = $vcal->Render();
|
||||||
$dav_name = sprintf( '%s%s.ics', $path, preg_replace('{[&?\\/@%+:]}','',$uid) );
|
$dav_name = sprintf( '%s%s.ics', $path, preg_replace('{[&?\\/@%+:]}','',$uid) );
|
||||||
|
|
||||||
/** Do we need to do anything? */
|
|
||||||
$inserting = true;
|
|
||||||
if ( isset($current_data[$dav_name]) ) {
|
|
||||||
if ( $icalendar == $current_data[$dav_name] ) {
|
|
||||||
unset($current_data[$dav_name]);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
$sync_change = 200;
|
|
||||||
unset($current_data[$dav_name]);
|
|
||||||
$inserting = false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
$sync_change = 201;
|
|
||||||
|
|
||||||
if ( isset($c->skip_bad_event_on_import) && $c->skip_bad_event_on_import ) $qry->Begin();
|
if ( isset($c->skip_bad_event_on_import) && $c->skip_bad_event_on_import ) $qry->Begin();
|
||||||
|
|
||||||
/** As ever, we mostly deal with the first resource component */
|
/** As ever, we mostly deal with the first resource component */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user