Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10531] Android: Contacts "fullName" property always return empty string when query.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-09-03T04:12:26.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sSprint 2012-17 API, Release 3.0.0
ComponentsAndroid
Labelsapi, module_android, qe-review, qe-testadded, regression
ReporterHieu Pham
AssigneeHieu Pham
Created2012-08-21T14:41:01.000+0000
Updated2014-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.

Comments

  1. Tamila Smolich 2012-08-27

    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
  2. Anshu Mittal 2012-09-03

    Reopening to update labels
  3. jithinpv 2014-02-25

    Anvil test case added. PR Link: https://github.com/appcelerator/titanium_mobile/pull/5380

JSON Source