Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16170] iOS: Titanium.Calendar.Alert.setRelativeOffset method does not work because of misspelling

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.2.0
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterPaul Mietz Egli
AssigneeUnknown
Created2014-01-10T17:42:34.000+0000
Updated2018-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.

Comments

  1. Ritu Agrawal 2014-01-12

    Moving this ticket to engineering as I verified that setRelativeOffset is spelled incorrectly as setRelavtiveOffset in TiCalendarAlert.m file.

JSON Source