Skip to content

Commit f7ed04f

Browse files
#231 Error on iOS when deleting event
1 parent 16c94b5 commit f7ed04f

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cordova-plugin-calendar",
3-
"version": "4.4.1",
3+
"version": "4.4.2",
44
"description": "This plugin allows you to manipulate the native calendar.",
55
"cordova": {
66
"id": "cordova-plugin-calendar",

plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xmlns="http://apache.org/cordova/ns/plugins/1.0"
44
xmlns:android="http://schemas.android.com/apk/res/android"
55
id="cordova-plugin-calendar"
6-
version="4.4.1">
6+
version="4.4.2">
77

88
<name>Calendar</name>
99

src/ios/Calendar.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,8 @@ - (void) deleteEventFromCalendar:(CDVInvokedUrlCommand*)command
279279
NSTimeInterval _endInterval = [endTime doubleValue] / 1000; // strip millis
280280
NSDate *myEndDate = [NSDate dateWithTimeIntervalSince1970:_endInterval];
281281

282-
NSArray *matchingEvents = [self findEKEventsWithTitle:title location:location notes:notes startDate:myStartDate endDate:myEndDate calendar:calendar];
282+
NSArray *calendars = [NSArray arrayWithObject:calendar];
283+
NSArray *matchingEvents = [self findEKEventsWithTitle:title location:location notes:notes startDate:myStartDate endDate:myEndDate calendars:calendars];
283284

284285
NSError *error = NULL;
285286
for (EKEvent * event in matchingEvents) {

0 commit comments

Comments
 (0)