Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1562] Saving a contact in 3.2 causes a crash

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:56:31.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsiOS
Labels3.2, contacts, defect, ios, ipad
Reporterctredway
AssigneeBlain Hamon
Created2011-04-15T02:56:08.000+0000
Updated2011-04-17T01:56:31.000+0000

Description

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

Code::::
var address = {};

address.Street = "17 Palace Court";
address.City = "London";
address.State = "Clondon";
address.ZIP = "W24LP";

var contact = Titanium.Contacts.createPerson();
contact.kind = Titanium.Contacts.CONTACTS_KIND_ORGANIZATION;  // Comment this out and no crash, but NEED Orga!
contact.firstName = "Freddy";
contact.lastName = "Jones";
contact.organization = "SculptLight";
contact.address = {"work":[address]};
contact.email = {"work":["ivazn@sculptlightz.com"]};
Titanium.Contacts.save();

Comments

  1. Jeff Haynie 2011-04-15

    (from [d4fd35d54a7660538cb1d3ce0bc72cb493e74aa3]) [#1562 state:fixed-in-qa]: Contacts properties no longer cast to strings. http://github.com/appcelerator/titanium_mobile/commit/d4fd35d54a7660538cb1d3ce0bc72cb493e74aa3"> http://github.com/appcelerator/titanium_mobile/commit/d4fd35d54a766...

  2. Thomas Huelbert 2011-04-15

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

JSON Source