You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Ciro La Ferrara (JIRA)" <ji...@apache.org> on 2012/07/04 11:50:33 UTC
[jira] [Created] (CB-1005) Can not remove contact phonenumber
values
Ciro La Ferrara created CB-1005:
-----------------------------------
Summary: Can not remove contact phonenumber values
Key: CB-1005
URL: https://issues.apache.org/jira/browse/CB-1005
Project: Apache Cordova
Issue Type: Bug
Components: Android
Affects Versions: 1.9.0
Environment: Eclipse
Reporter: Ciro La Ferrara
Assignee: Joe Bowser
We can not remove contact phonenumber values. See in action on http://nopaste.info/285b2a4203.html
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-1005) Can not remove contact phonenumber
values
Posted by "Ciro La Ferrara (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13406406#comment-13406406 ]
Ciro La Ferrara commented on CB-1005:
-------------------------------------
change contacts[i].phoneNumbers = new Array(); with contacts[i].phoneNumbers = null;
Same result
> Can not remove contact phonenumber values
> -----------------------------------------
>
> Key: CB-1005
> URL: https://issues.apache.org/jira/browse/CB-1005
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 1.9.0
> Environment: Eclipse
> Reporter: Ciro La Ferrara
> Assignee: Joe Bowser
>
> We can not remove contact phonenumber values. See in action on http://nopaste.info/285b2a4203.html
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-1005) Can not remove contact phonenumber
values
Posted by "Simon MacDonald (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13407171#comment-13407171 ]
Simon MacDonald commented on CB-1005:
-------------------------------------
I talked to Becky and the iOS way to clear the phoneNumbers is to set it to an empty array. For instance:
contacts[i].phoneNumbers = [];
I'm going to look into this on Android.
> Can not remove contact phonenumber values
> -----------------------------------------
>
> Key: CB-1005
> URL: https://issues.apache.org/jira/browse/CB-1005
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 1.9.0
> Environment: Eclipse
> Reporter: Ciro La Ferrara
> Assignee: Joe Bowser
>
> We can not remove contact phonenumber values. See in action on http://nopaste.info/285b2a4203.html
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-1005) Can not remove contact phonenumber
values
Posted by "Ciro La Ferrara (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13407280#comment-13407280 ]
Ciro La Ferrara commented on CB-1005:
-------------------------------------
contacts[i].phoneNumbers = []; // Doesn't work on Android
> Can not remove contact phonenumber values
> -----------------------------------------
>
> Key: CB-1005
> URL: https://issues.apache.org/jira/browse/CB-1005
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 1.9.0
> Environment: Eclipse
> Reporter: Ciro La Ferrara
> Assignee: Simon MacDonald
>
> We can not remove contact phonenumber values. See in action on http://nopaste.info/285b2a4203.html
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Comment Edited] (CB-1005) Can not remove contact
phonenumber values
Posted by "Ciro La Ferrara (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13410542#comment-13410542 ]
Ciro La Ferrara edited comment on CB-1005 at 7/10/12 5:05 PM:
--------------------------------------------------------------
Thanks Simon :) Please see CB-1009
was (Author: enigmista):
Thanks Simon :)
> Can not remove contact phonenumber values
> -----------------------------------------
>
> Key: CB-1005
> URL: https://issues.apache.org/jira/browse/CB-1005
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 1.9.0
> Environment: Eclipse
> Reporter: Ciro La Ferrara
> Assignee: Simon MacDonald
> Fix For: 2.0.0
>
>
> We can not remove contact phonenumber values. See in action on http://nopaste.info/285b2a4203.html
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (CB-1005) Can not remove contact phonenumber
values
Posted by "Simon MacDonald (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1005?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon MacDonald reassigned CB-1005:
-----------------------------------
Assignee: Simon MacDonald (was: Joe Bowser)
> Can not remove contact phonenumber values
> -----------------------------------------
>
> Key: CB-1005
> URL: https://issues.apache.org/jira/browse/CB-1005
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 1.9.0
> Environment: Eclipse
> Reporter: Ciro La Ferrara
> Assignee: Simon MacDonald
>
> We can not remove contact phonenumber values. See in action on http://nopaste.info/285b2a4203.html
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-1005) Can not remove contact phonenumber
values
Posted by "Simon MacDonald (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13407282#comment-13407282 ]
Simon MacDonald commented on CB-1005:
-------------------------------------
I know that, that's why I assigned the bug to me to look into :)
> Can not remove contact phonenumber values
> -----------------------------------------
>
> Key: CB-1005
> URL: https://issues.apache.org/jira/browse/CB-1005
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 1.9.0
> Environment: Eclipse
> Reporter: Ciro La Ferrara
> Assignee: Simon MacDonald
>
> We can not remove contact phonenumber values. See in action on http://nopaste.info/285b2a4203.html
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-1005) Can not remove contact phonenumber
values
Posted by "Ciro La Ferrara (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13410542#comment-13410542 ]
Ciro La Ferrara commented on CB-1005:
-------------------------------------
Thanks Simon :)
> Can not remove contact phonenumber values
> -----------------------------------------
>
> Key: CB-1005
> URL: https://issues.apache.org/jira/browse/CB-1005
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 1.9.0
> Environment: Eclipse
> Reporter: Ciro La Ferrara
> Assignee: Simon MacDonald
> Fix For: 2.0.0
>
>
> We can not remove contact phonenumber values. See in action on http://nopaste.info/285b2a4203.html
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CB-1005) Can not remove contact phonenumber
values
Posted by "Simon MacDonald (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1005?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon MacDonald resolved CB-1005.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.0.0
In 2.0.0 if you set any of the contact fields to an empty array it will clear out the fields.
> Can not remove contact phonenumber values
> -----------------------------------------
>
> Key: CB-1005
> URL: https://issues.apache.org/jira/browse/CB-1005
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 1.9.0
> Environment: Eclipse
> Reporter: Ciro La Ferrara
> Assignee: Simon MacDonald
> Fix For: 2.0.0
>
>
> We can not remove contact phonenumber values. See in action on http://nopaste.info/285b2a4203.html
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-1005) Can not remove contact phonenumber
values
Posted by "Simon MacDonald (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13406661#comment-13406661 ]
Simon MacDonald commented on CB-1005:
-------------------------------------
The problem is you cannot just set phoneNumbers = null because if you request a contact via the find command and dont' request "phoneNumbers" as one of the attributes to return it will be set to null. So there is no way to tell if the user has set phoneNumbers to null on purpose or not.
Each phoneNumber has an id which is compared against the Android contacts DB. If the id exists then we consider it a modification. If no id is set for the phoneNumber it is considered and addition. So the best way to remove a phoneNumber right now is to set it's properties to "".
> Can not remove contact phonenumber values
> -----------------------------------------
>
> Key: CB-1005
> URL: https://issues.apache.org/jira/browse/CB-1005
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 1.9.0
> Environment: Eclipse
> Reporter: Ciro La Ferrara
> Assignee: Joe Bowser
>
> We can not remove contact phonenumber values. See in action on http://nopaste.info/285b2a4203.html
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira