[TIMOB-16170] iOS: Titanium.Calendar.Alert.setRelativeOffset method does not work because of misspelling
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 3.2.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Paul Mietz Egli |
Assignee | Unknown |
Created | 2014-01-10T17:42:34.000+0000 |
Updated | 2018-02-28T20:03:35.000+0000 |
Description
The setter method for the relativeOffset property in Ti.Calendar.Alert is misspelled:
-(void)setRelavtiveOffset:(id)arg
{
alert.relativeOffset = [TiUtils doubleValue:arg] / 1000;
}
This causes the following code to not set an alert properly:
// get or create an Event object named "event"
var a = event.createAlert({ relativeOffset: 0 });
a.setRelativeOffset(-60 * 60 * 1000);
event.setAlerts([a]);
event.save();
The resulting event will have an alert at the time of the event, not one hour before.
Moving this ticket to engineering as I verified that setRelativeOffset is spelled incorrectly as setRelavtiveOffset in TiCalendarAlert.m file.