mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Merge pull request #2151 from cryptpad/calendar-export-fixes
Calendar export fixes
This commit is contained in:
commit
6e8e6133bd
@ -52,7 +52,7 @@ define([
|
||||
|
||||
|
||||
module.main = function (userDoc) {
|
||||
var content = userDoc.content;
|
||||
var content = userDoc.content || {};
|
||||
|
||||
var ICS = [
|
||||
'BEGIN:VCALENDAR',
|
||||
@ -227,7 +227,7 @@ define([
|
||||
|
||||
if (ud.from) { // "From" updates are not supported by ICS: make a new event
|
||||
var _new = Util.clone(prev);
|
||||
r.until = getICSDate(d - 1); // Stop previous recursion
|
||||
r.until = d - 1; // Stop previous recursion
|
||||
delete r.count;
|
||||
addEvent(ICS, prev, null); // Add previous event
|
||||
Array.prototype.push.apply(ICS, toAdd); // Add individual updates
|
||||
|
||||
Loading…
Reference in New Issue
Block a user