You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2013/06/11 01:43:01 UTC

[12/12] wp7 commit: Applied CB-3522 from WP8 ( identical issue present on WP7 )

Applied CB-3522 from WP8 ( identical issue present on WP7 )


Project: http://git-wip-us.apache.org/repos/asf/cordova-wp7/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp7/commit/b32ecd17
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp7/tree/b32ecd17
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp7/diff/b32ecd17

Branch: refs/heads/master
Commit: b32ecd17aab78dcf39eda210cffe4942c93fbb98
Parents: 2b6b651
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Mon Jun 10 16:40:16 2013 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Mon Jun 10 16:40:16 2013 -0700

----------------------------------------------------------------------
 templates/standalone/Plugins/Contacts.cs | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/b32ecd17/templates/standalone/Plugins/Contacts.cs
----------------------------------------------------------------------
diff --git a/templates/standalone/Plugins/Contacts.cs b/templates/standalone/Plugins/Contacts.cs
index 6789bb8..263cc2c 100644
--- a/templates/standalone/Plugins/Contacts.cs
+++ b/templates/standalone/Plugins/Contacts.cs
@@ -396,12 +396,17 @@ namespace WPCordovaClassLib.Cordova.Commands
                 return;
             }
 
+            //Deal with case where caller has specified no options
             if (searchParams.options == null)
             {
                 searchParams.options = new SearchOptions();
                 searchParams.options.filter = "";
                 searchParams.options.multiple = true;
             }
+            else if (searchParams.options.filter == null) // Deal with the case where caller has specified partial options
+            {
+                searchParams.options.filter = "";
+            }
 
             DeviceContacts deviceContacts = new DeviceContacts();
             deviceContacts.SearchCompleted += new EventHandler<ContactsSearchEventArgs>(contacts_SearchCompleted);
@@ -623,7 +628,7 @@ namespace WPCordovaClassLib.Cordova.Commands
             }
             else
             {
-                retVal = string.Format(formatStr,"","","","","","");
+                retVal = string.Format(formatStr, "", "", "", "", "", "");
             }
 
             return "{" + retVal + "}";