Eileen has uploaded a new change for review.
https://gerrit.wikimedia.org/r/286377
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(-)
git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/crm/civicrm
refs/changes/77/286377/1
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: newchange
Gerrit-Change-Id: Icb0f9015e8e9a0b463b06dea44c87ab612b1e285
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/crm/civicrm
Gerrit-Branch: master
Gerrit-Owner: Eileen <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits