{ "id": "62194", "key": "TIMOB-1562", "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": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:56:31.000+0000", "created": "2011-04-15T02:56:08.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "3.2", "contacts", "defect", "ios", "ipad" ], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:56:31.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}

When saving a contact as an Organization causes a crash on 3.2\nand saves as a person in 4.0.

\n

Code::::
\nvar address = {};

\n
\naddress.Street = \"17 Palace Court\";\naddress.City = \"London\";\naddress.State = \"Clondon\";\naddress.ZIP = \"W24LP\";\n\nvar contact = Titanium.Contacts.createPerson();\ncontact.kind = Titanium.Contacts.CONTACTS_KIND_ORGANIZATION;  // Comment this out and no crash, but NEED Orga!\ncontact.firstName = \"Freddy\";\ncontact.lastName = \"Jones\";\ncontact.organization = \"SculptLight\";\ncontact.address = {\"work\":[address]};\ncontact.email = {\"work\":[\"ivazn@sculptlightz.com\"]};\nTitanium.Contacts.save();\n
{html}", "attachment": [], "flagged": false, "summary": "Saving a contact in 3.2 causes a crash", "creator": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "126053", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [d4fd35d54a7660538cb1d3ce0bc72cb493e74aa3])\n[#1562 state:fixed-in-qa]: Contacts properties no\nlonger cast to strings. \nhttp://github.com/appcelerator/titanium_mobile/commit/d4fd35d54a766...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:56:08.000+0000", "updated": "2011-04-15T02:56:08.000+0000" }, { "id": "126054", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

valid, needs testcase
\n3.2 crash fixed, 3.2+4.0 saves as org now.

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:56:08.000+0000", "updated": "2011-04-15T02:56:08.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }