Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-1562

Saving a contact in 3.2 causes a crash

    Details

      Description

      {html}<div><p>When saving a contact as an Organization causes a crash on 3.2
      and saves as a person in 4.0.</p>
      <p>Code::::<br>
      var address = {};<br></p>
      <pre>
      <code>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();</code>
      </pre></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              blainhamon Blain Hamon
              Reporter:
              ctredway1 ctredway
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-1425
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration