{ "id": "64036", "key": "TIMOB-3404", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-01-28T23:53:58.000+0000", "created": "2011-04-15T03:43:52.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "module_tableviewrow", "qe-closed-3.2.2", "qe-testadded", "tbs-1.8.0" ], "versions": [], "issuelinks": [ { "id": "44082", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "141517", "key": "TIMOB-18191", "fields": { "summary": "iOS: Contacts - Ti.Contacts.getAllGroups crashes the app after creating a contact group", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-12-12T01:23:12.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

A helpdesk\r\nticket reported a problem and I am confirming that this is a\r\nbug. When a contacts group is created, it cannot be removed. An\r\nerror is thrown:

\r\n
\r\nvar group = Ti.Contacts.createGroup( { name: 'TESTGROUP' } );\r\nTi.Contacts.save();\r\nalert(group);\r\nTi.Contacts.removeGroup(group);\r\n
\r\n

The console output is:

\r\n
\r\n[ERROR] Invalid type passed to function. expected: TiContactsGroup,\r\nwas: TiContactsPerson in -[ContactsModule removePerson:] (ContactsModule.m:287)\r\n
\r\n

But the type passed to the function is in fact a group, not a\r\nperson.

\r\n

Tested on iPhone Simulator 4.3
\r\nTitanium SDK 1.6.1

{html}", "attachment": [], "flagged": false, "summary": "iOS - Ti.Contacts.removeGroup() does not work", "creator": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "195063", "author": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "body": "No test case provided.", "updateAuthor": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "created": "2012-05-16T14:53:03.000+0000", "updated": "2012-05-16T14:53:03.000+0000" }, { "id": "296545", "author": { "name": "nmittal", "key": "nmittal", "displayName": "Neha Mittal", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Verified as fixed on below environment:\r\n\r\nAppc Studio: 3.2.2.201402280732\r\nSdk: 3.2.3.v20140310185916\r\nacs: 1.0.14\r\nnpm: 1.3.2\r\nalloy:1.3.1\r\ntitanium:3.2.1\r\ntitanium-code-processor:1.1.0\r\nXcode: 5.1\r\nOsx: Maverick(10.9.2)\r\nDevice: iPhone 5S (iOS 7.1)\r\n\r\nTi.Contacts.removeGroup() is now work as expected.", "updateAuthor": { "name": "nmittal", "key": "nmittal", "displayName": "Neha Mittal", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-03-11T09:45:36.000+0000", "updated": "2014-03-11T09:45:36.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }