Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3404] iOS - Ti.Contacts.removeGroup() does not work

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2014-01-28T23:53:58.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.2.0
ComponentsiOS
Labelsmodule_tableviewrow, qe-closed-3.2.2, qe-testadded, tbs-1.8.0
ReporterPedro Enrique
AssigneeIngo Muschenetz
Created2011-04-15T03:43:52.000+0000
Updated2014-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

Comments

  1. Varun Joshi 2012-05-16

    No test case provided.
  2. Neha Mittal 2014-03-11

    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.

JSON Source