{ "id": "141388", "key": "TIMOB-18175", "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": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" }, { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-12-10T22:35:07.000+0000", "created": "2014-12-10T10:28:06.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-3.5.0", "regression" ], "versions": [], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-01-21T13:57:54.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": "This is a regression as the alert message appears with titanium sdk 3.4.1\r\n\r\nThe alert message to display the fullname of the contact, set in the selectedPerson property of the showContacts, does not appear when a contact is selected from the device with titanium 3.5.0 sdk. \r\n\r\nWhen this test case is run using titanium 3.4.1 sdk, the alert messages appear but the information of the selected person, i.e. fullname of the person, does not appear instead an alert message showing \"Fullname of Selected No name\" pops up.\r\n\r\nSteps to reproduce:\r\n1. Create a sample classic proj and replace app.js with the following:\r\n{code}\r\nvar _window = Titanium.UI.createWindow({ \r\n // title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\n\r\n var btn = Ti.UI.createButton({\r\n title: 'contacts'\r\n });\r\n\r\n btn.addEventListener('click', function() {\r\n Ti.Contacts.showContacts({\r\n selectedPerson: function(e) {\r\n\r\n Ti.API.info('FullName of Selected' + e.person.fullName);\r\n alert('FullName of Selected ' + e.person.fullName);\r\n\r\n }\r\n });\r\n });\r\n _window.add(btn);\r\n\t_window.open();\r\n{code}\r\n\r\n2. Run the app\r\n3. Click on contacts\r\n4. Select any contacts\r\n\r\nNote: Please add contacts in contact list before running the testcase.\r\n\r\nActual Results:\r\n2. Window gets open with button \"Contacts\". \r\n3. Contact list gets open. \r\n4. No alert\r\n\r\nExpected results:\r\n2. Window gets open with button \"Contacts\". \r\n3. Contact list gets open. \r\n4. Get an alert with \"FullName of Selected [Fullname of contact]\".", "attachment": [], "flagged": false, "summary": "iOS: selectedPerson under showContacts does not show the details of the selected contact", "creator": { "name": "vchidambaram", "key": "vchidambaram", "displayName": "Visalakshi Chidambaram", "active": true, "timeZone": "Asia/Shanghai" }, "subtasks": [], "reporter": { "name": "vchidambaram", "key": "vchidambaram", "displayName": "Visalakshi Chidambaram", "active": true, "timeZone": "Asia/Shanghai" }, "environment": "Appc-Studio: 3.4.1.201410281743 \r\nTitanium SDK: 3.5.0.v20141208122514 \r\nTitanium CLI: 3.4.1 \r\nAlloy : 1.5.1 GA \r\nOS: Mac OSX 10.10 \r\nXcode: 6.1 \r\nDevice: iPad Air 2 (iOS8.1)", "closedSprints": [ { "id": 272, "state": "closed", "name": "2014 Sprint 25 SDK", "startDate": "2014-12-08T22:49:31.264Z", "endDate": "2014-12-22T01:00:00.000Z", "completeDate": "2015-01-05T18:18:28.523Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "335888", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending\r\nmaster - https://github.com/appcelerator/titanium_mobile/pull/6468\r\n3_5_X - https://github.com/appcelerator/titanium_mobile/pull/6469", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-12-10T22:30:57.000+0000", "updated": "2014-12-10T22:30:57.000+0000" }, { "id": "336076", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified fix on:\r\n\r\nMac OSX 10.10.1\r\nAppcelerator Studio, build: 3.4.1.201410281743\r\nTitanium SDK build: 3.5.0.v20141211124115\r\nTitanium CLI, build: 3.4.1\r\nAlloy: 1.5.1\r\nXcode 6.1.1\r\niPhone 6 Plus (8.1), iPad Air 2 (8.2b2)\r\n\r\nUsing the code below ran on both devices, when authorization is not required the following is printed to the console FullName of Selected No name, after requesting authorization the following is printed to the console FullName of Selected David Burrow.\r\n\r\n{code}\r\nvar _window = Titanium.UI.createWindow({backgroundColor:'#fff'});\r\n \r\nvar btn = Ti.UI.createButton({\r\n title: 'contacts'\r\n});\r\n \r\nbtn.addEventListener('click', function() {\r\n\tTi.Contacts.showContacts({\r\n \tselectedPerson: function(e) {\t\r\n \tTi.API.info('FullName of Selected ' + e.person.fullName); \r\n }\r\n });\r\n});\r\n\r\nvar b1 = Ti.UI.createButton({\r\n\t\tbottom:10,\r\n\t\ttitle:'Request Authorization'\r\n});\r\n\r\nb1.addEventListener('click',function(e){\r\n\tTi.Contacts.requestAuthorization(function(){Ti.API.info('Requesting');});\r\n}); \r\n\t \r\n_window.add(b1); \r\n_window.add(btn);\r\n_window.open();\r\n{code}\r\n\r\nClosing ticket", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2014-12-11T22:33:53.000+0000", "updated": "2014-12-11T22:33:53.000+0000" }, { "id": "340000", "author": { "name": "kstorm001", "key": "kstorm001", "displayName": "Keith Storm", "active": true, "timeZone": "America/New_York" }, "body": "This problem still exists for me using Android 4.3 on Motorola DROID RAZR with Titanium Mobile SDK 3.5.0 GA. Any way we can get a fix? Thanks.", "updateAuthor": { "name": "kstorm001", "key": "kstorm001", "displayName": "Keith Storm", "active": true, "timeZone": "America/New_York" }, "created": "2015-01-20T21:46:42.000+0000", "updated": "2015-01-20T21:46:42.000+0000" }, { "id": "340010", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~kstorm001] Hello, this ticket is specific to a filler of existing behavior on iOS. I just checked this code on Android and it is behaving as expected (the Alert appears with the name of the selected person displayed). \r\n\r\nI'm not sure what you're experiencing. I used emulator, but will ask our team to verify against devices. This code should display a contacts picker, then if you select a person you get an alert of the full name. Please let us know what you are seeing. If not exactly this ticket, please create a new one describing the behavior you are seeing, and what you expect.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-20T22:14:10.000+0000", "updated": "2015-01-20T22:14:10.000+0000" }, { "id": "340017", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Using the code provided in the original ticket when building to a Note 2 (4.3) and Droid RAZR HD (4.0.4), the full name of a contact is returned. Using:\r\n\r\nMac OSX 10.10.1\r\nAppcelerator Studio, build: 3.4.1.201410281743\r\nTitanium SDK build: 3.5.0.GA\r\nTitanium CLI, build: 3.4.1\r\nAlloy: 1.5.1\r\nNote 2 (4.3), Droid RAZR HD (4.0.4)", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-01-20T22:32:22.000+0000", "updated": "2015-01-20T22:32:22.000+0000" }, { "id": "340111", "author": { "name": "kstorm001", "key": "kstorm001", "displayName": "Keith Storm", "active": true, "timeZone": "America/New_York" }, "body": "I will do some more testing to see if I can recreate the issue. Thanks!", "updateAuthor": { "name": "kstorm001", "key": "kstorm001", "displayName": "Keith Storm", "active": true, "timeZone": "America/New_York" }, "created": "2015-01-21T13:57:54.000+0000", "updated": "2015-01-21T13:57:54.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }