[TIMOB-1562] Saving a contact in 3.2 causes a crash
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:56:31.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 |
Components | iOS |
Labels | 3.2, contacts, defect, ios, ipad |
Reporter | ctredway |
Assignee | Blain Hamon |
Created | 2011-04-15T02:56:08.000+0000 |
Updated | 2011-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();
(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...
valid, needs testcase
3.2 crash fixed, 3.2+4.0 saves as org now.