jenkins-bot has submitted this change and it was merged.

Change subject: Fix for country search
......................................................................


Fix for country search

This is already fixed upstream in the (4.7) master branch.

Bug: T133796
Change-Id: Icb0f9015e8e9a0b463b06dea44c87ab612b1e285
---
M CRM/Contact/BAO/Query.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Awight: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/CRM/Contact/BAO/Query.php b/CRM/Contact/BAO/Query.php
index f6a92f7..2b91a3a 100644
--- a/CRM/Contact/BAO/Query.php
+++ b/CRM/Contact/BAO/Query.php
@@ -4586,7 +4586,7 @@
   public static function filterCountryFromValuesIfStateExists(&$formValues)
   {
     if (!empty($formValues['country'])) {
-      if (isset($formValues['state_province'])) {
+      if (!empty($formValues['state_province'])) {
         // The use of array map sanitises the data by ensuring we are dealing 
with integers.
         $states = implode(', ', array_map('intval', 
$formValues['state_province']));
         $countryList = CRM_Core_DAO::singleValueQuery(

-- 
To view, visit https://gerrit.wikimedia.org/r/286377
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Icb0f9015e8e9a0b463b06dea44c87ab612b1e285
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/crm/civicrm
Gerrit-Branch: master
Gerrit-Owner: Eileen <[email protected]>
Gerrit-Reviewer: Awight <[email protected]>
Gerrit-Reviewer: Ejegg <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to