{ "id": "100674", "key": "TIMOB-13319", "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": [], "resolution": null, "resolutiondate": null, "created": "2012-09-10T05:27:10.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:04:10.000+0000", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "*Problem description*\r\nRunning the code below on iOS Simulator always returns null in the 'kind' property.\r\n\r\n*Test case*\r\n{code}\r\n(function() {\r\n\tvar peopleArray = Ti.Contacts.getAllPeople();\r\n\tfor (var i = 0; i < peopleArray.length; i++) {\r\n\t\tvar kind = peopleArray[i].kind;\r\n\t\tif (kind == null)\r\n\t\t\tTi.API.info(peopleArray[i].fullName + ' - kind is null')\r\n\t}\r\n})();\r\n{code}\r\n\r\n*Logs*\r\n{code}\r\n[INFO] : \b\b \b Kate Bell - kind is null\r\n[INFO] : \b\b \b Daniel Higgins Jr. - kind is null\r\n[INFO] : \b\b \b John Appleseed - kind is null\r\n[INFO] : \b\b \b Anna Haro - kind is null\r\n[INFO] : \b\b \b Hank M. Zakroff - kind is null\r\n[INFO] : \b\b \b David Taylor - kind is null\r\n{code}", "attachment": [ { "id": "36928", "filename": "app.js", "author": { "name": "grimland", "key": "grimland", "displayName": "Grant Rimland", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-02T12:19:36.000+0000", "size": 239, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "iOS: Titanium.Contacts.Person kind property is always null", "creator": { "name": "grimland", "key": "grimland", "displayName": "Grant Rimland", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "grimland", "key": "grimland", "displayName": "Grant Rimland", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS Simulator\r\n3.0.2 GA", "comment": { "comments": [ { "id": "219497", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello,\r\ndo you have any contact in the Contacts app with kind defined?\r\n\r\nBest,\r\nMauro ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2012-09-18T11:50:37.000+0000", "updated": "2012-09-18T11:50:37.000+0000" }, { "id": "220095", "author": { "name": "grimland", "key": "grimland", "displayName": "Grant Rimland", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I added a company contact to the contacts and a person contact as well. In the contacts the company contact displays the company name and the default company image when you view the details of the contact, and the person displays the persons name and the default person image in the contacts details. But when loading the contact information in Titanium the kind property is null for both.\r\n\r\nGrant", "updateAuthor": { "name": "grimland", "key": "grimland", "displayName": "Grant Rimland", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-21T06:13:15.000+0000", "updated": "2012-09-21T06:13:15.000+0000" }, { "id": "245065", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Grant,\r\n\r\nBefore we can escalate this, we need the following info:\r\n- Whether this still occurs with 3.0.2 GA\r\n- A complete simple runnable app.js test case.\r\n\r\nWe appreciate your time in helping to improve the platform.\r\n\r\nThanks!", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-01T23:16:36.000+0000", "updated": "2013-04-01T23:16:36.000+0000" }, { "id": "245164", "author": { "name": "grimland", "key": "grimland", "displayName": "Grant Rimland", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Yes it still occurs in 3.0.2 GA\r\n\r\nI used the following code in the app.js file to test. I have attached this file. All contacts set up in the simulator for both persons and organisations returned null in the kind field.\r\n\r\n(function() {\r\n\t\r\n\tvar peopleArray = Ti.Contacts.getAllPeople(); \r\n\tfor(var i = 0; i < peopleArray.length; i++) \r\n\t{ \r\n\t\tvar kind = peopleArray[i].kind; \r\n\t\tif (kind == null)\r\n\t\t Ti.API.info(peopleArray[i].fullName + ' - kind is null')\r\n\t}\r\n})();", "updateAuthor": { "name": "grimland", "key": "grimland", "displayName": "Grant Rimland", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-02T12:15:04.000+0000", "updated": "2013-04-02T12:20:55.000+0000" }, { "id": "245195", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello,\nsilly question: do you have any contact in your iOS simulator?\n\nBest,\n\nMauro ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-04-02T16:04:23.000+0000", "updated": "2013-04-02T16:04:23.000+0000" }, { "id": "245230", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and confirmed in iOS 6 simulator with Ti SDK 3.0.2 GA (Mauro: The simulator has a set of default contacts). Updated description with logs.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-02T19:30:43.000+0000", "updated": "2013-04-02T19:30:43.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }