[TIMOB-10531] Android: Contacts "fullName" property always return empty string when query.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-09-03T04:12:26.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | Sprint 2012-17 API, Release 3.0.0 |
Components | Android |
Labels | api, module_android, qe-review, qe-testadded, regression |
Reporter | Hieu Pham |
Assignee | Hieu Pham |
Created | 2012-08-21T14:41:01.000+0000 |
Updated | 2014-02-25T11:26:01.000+0000 |
Description
Steps to reproduce:
1. Run this code
//Create a new contact
var contact = Ti.Contacts.createPerson({
firstName: 'David',
lastName: 'Burrow',
});
//Query for contact
var people = Ti.Contacts.getPeopleWithName("David Burrow");
if (people.length > 0) {
var person = people[0];
Ti.API.info("fullName: " + person.fullName);
}
2. Log shows fullName is "". It should be "David Burrow". This is a regression, works in 2.1.1 GA.
Closing as fixed. Tested and verified on: Titanium Studio, build: 2.1.2.201208201549 Titanium SDK, build: 2.2.0.v20120824175712 Devices: Nexus S (4.1.1), HTC Evo (4.0.3) Log shows FullName: David Burrow
Reopening to update labels
Anvil test case added. PR Link: https://github.com/appcelerator/titanium_mobile/pull/5380