{ "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\nThe 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\nBut the type passed to the function is in fact a group, not a\r\nperson.
\r\nTested on iPhone Simulator 4.3
\r\nTitanium SDK 1.6.1