[
https://issues.apache.org/jira/browse/CB-12315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15836825#comment-15836825
]
Audrey So commented on CB-12315:
--------------------------------
Hi! Since we have not heard from you in 4 days (which is our jira-triage policy
that can be found here
https://github.com/apache/cordova-coho/blob/master/docs/jira-triage.md) , we
are closing this issue for now. Please continue to reach out on the slack
channel or the GoogleGroup.Thank you! Have a great day! - Audrey
> Contacts Plugin returns same URL for all photos in array
> --------------------------------------------------------
>
> Key: CB-12315
> URL: https://issues.apache.org/jira/browse/CB-12315
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Contacts
> Reporter: Joshua Rowe
>
> Example: Contact ID 1000 has three photos which are returned in an array in
> the contacts object. However, all three photo URL's are the same for each of
> the photos returned.
> <code>
> var options = new ContactFindOptions();
> options.filter = "";
> options.multiple = true;
> options.hasPhoneNumber = true;
> var fields = ["id", "photos"];
> navigator.contacts.find(fields, ContactListSuccess, ContactListError,
> options);
> function ContactListSuccess(contacts) {
> for (var i = 0; i < contacts.length; i++) {
> console.log(contacts[i].id);
>
> for (var j = 0; j < contacts[i].photos.length; j++) {
> console.log(j + " - " + contacts[i].photos[j].value);
> }
> }
> }
> function ContactListError(error) {
> console.error(error);
> }
> </code>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]