[ 
https://issues.apache.org/jira/browse/CB-10976?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tobias Mücksch updated CB-10976:
--------------------------------
    Description: 
Let's say an existing contact that I've retrieved from the system has two phone 
number fields:

Shortened version of the contact object:

{
phoneNumbers: [{id: 0, type: "work", value: "123123123"}, {id: 1, type: "home", 
value: "3216532425"}]
}

When I remove one of the both contact fields from the phoneNumbers array and 
then save the contact, it still has both numbers on the device. When I 
re-retrieve the contact it has both numbers again. (Tested on iOS 9.3 with 
plugin version 2.0.1)

I can't find any hint in the documentation if I do something wrong or if the 
plugin is behaving wrong.


I have created a demo script, which you can use for testing:
http://pastebin.com/XRdREL3Y

  was:
Let's say an existing contact that I've retrieved from the system has two phone 
number fields:

Shortened version of the contact object:

{
phoneNumbers: [{id: 0, type: "work", value: "123123123"}, {id: 1, type: "home", 
value: "3216532425"}]
}

When I remove one of the both contact fields from the phoneNumbers array and 
then save the contact, it still has both numbers on the device. When I 
re-retrieve the contact it has both numbers again. (Tested on iOS 9.3 with 
plugin version 2.0.1)

I can't find any hint in the documentation if I do something wrong or if the 
plugin is behaving wrong.


> Can't remove contact field
> --------------------------
>
>                 Key: CB-10976
>                 URL: https://issues.apache.org/jira/browse/CB-10976
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Contacts
>    Affects Versions: 2.0.0
>         Environment: iOS 9.3
>            Reporter: Tobias Mücksch
>            Priority: Blocker
>
> Let's say an existing contact that I've retrieved from the system has two 
> phone number fields:
> Shortened version of the contact object:
> {
> phoneNumbers: [{id: 0, type: "work", value: "123123123"}, {id: 1, type: 
> "home", value: "3216532425"}]
> }
> When I remove one of the both contact fields from the phoneNumbers array and 
> then save the contact, it still has both numbers on the device. When I 
> re-retrieve the contact it has both numbers again. (Tested on iOS 9.3 with 
> plugin version 2.0.1)
> I can't find any hint in the documentation if I do something wrong or if the 
> plugin is behaving wrong.
> I have created a demo script, which you can use for testing:
> http://pastebin.com/XRdREL3Y



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to