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

iOS - Ti.Contacts.removeGroup() does not work

    Details

      Description

      {html}<div><p>A <a href=
      "http://developer.appcelerator.com/helpdesk/view/76592">helpdesk
      ticket</a> reported a problem and I am confirming that this is a
      bug. When a contacts group is created, it cannot be removed. An
      error is thrown:</p>
      <pre>
      <code>var group = Ti.Contacts.createGroup( { name: 'TESTGROUP' } );
      Ti.Contacts.save();
      alert(group);
      Ti.Contacts.removeGroup(group);</code>
      </pre>
      <p>The console output is:</p>
      <pre>
      <code>[ERROR] Invalid type passed to function. expected: TiContactsGroup,
      was: TiContactsPerson in -[ContactsModule removePerson:] (ContactsModule.m:287)</code>
      </pre>
      <p>But the type passed to the function is in fact a group, not a
      person.</p>
      <p>Tested on iPhone Simulator 4.3<br>
      Titanium SDK 1.6.1</p></div>{html}

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ingo Ingo Muschenetz
                Reporter:
                penrique Pedro Enrique (Inactive)
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration