[TIMOB-3404] iOS - Ti.Contacts.removeGroup() does not work
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-01-28T23:53:58.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 3.2.0 |
Components | iOS |
Labels | module_tableviewrow, qe-closed-3.2.2, qe-testadded, tbs-1.8.0 |
Reporter | Pedro Enrique |
Assignee | Ingo Muschenetz |
Created | 2011-04-15T03:43:52.000+0000 |
Updated | 2014-12-12T01:23:12.000+0000 |
Description
A http://developer.appcelerator.com/helpdesk/view/76592">helpdesk ticket reported a problem and I am confirming that this is a bug. When a contacts group is created, it cannot be removed. An error is thrown:
var group = Ti.Contacts.createGroup( { name: 'TESTGROUP' } );
Ti.Contacts.save();
alert(group);
Ti.Contacts.removeGroup(group);
The console output is:
[ERROR] Invalid type passed to function. expected: TiContactsGroup,
was: TiContactsPerson in -[ContactsModule removePerson:] (ContactsModule.m:287)
But the type passed to the function is in fact a group, not a person.
Tested on iPhone Simulator 4.3
Titanium SDK 1.6.1
No test case provided.
Verified as fixed on below environment: Appc Studio: 3.2.2.201402280732 Sdk: 3.2.3.v20140310185916 acs: 1.0.14 npm: 1.3.2 alloy:1.3.1 titanium:3.2.1 titanium-code-processor:1.1.0 Xcode: 5.1 Osx: Maverick(10.9.2) Device: iPhone 5S (iOS 7.1) Ti.Contacts.removeGroup() is now work as expected.