Merge pull request #4009 from eileenmcnaughton/CRM-15210
authorcolemanw <coleman@civicrm.org>
Mon, 1 Sep 2014 15:49:14 +0000 (16:49 +0100)
committercolemanw <coleman@civicrm.org>
Mon, 1 Sep 2014 15:49:14 +0000 (16:49 +0100)
CRM-15210 fix fatal on merge exports of non primary addresses

CRM/Core/BAO/Address.php
templates/CRM/Contribute/Form/Contribution/Confirm.tpl
templates/CRM/Contribute/Form/Contribution/ThankYou.tpl

index 5285d7811c551261ff366ab3470108ff34f5a877..4482d3b5d20a674cd8e19c028cc6a2e008c376b8 100644 (file)
@@ -1185,7 +1185,7 @@ SELECT is_primary,
             $props['country_id'] = $config->defaultContactCountry;
           }
         }
-        if (!empty($props['country_id'])) {
+        if (!empty($props['country_id']) && $context !== 'validate') {
           $params['condition'] = 'country_id IN (' . implode(',', (array) $props['country_id']) . ')';
         }
         break;
@@ -1207,4 +1207,4 @@ SELECT is_primary,
     }
     return CRM_Core_PseudoConstant::get(__CLASS__, $fieldName, $params, $context);
   }
-}
\ No newline at end of file
+}
index e00f7da8f17bae6932b180904db0a0f1549b6283..da5a885760b797d564aad869973aa10635964377 100644 (file)
@@ -92,7 +92,7 @@
 {crmRegion name="contribution-confirm-recur-membership"}
                     <br />
                     <strong>{ts 1=$frequency_interval 2=$frequency_unit}I want this membership to be renewed automatically every %1 %2(s).{/ts}</strong></p>
-                    <div class="description crm-auto-renew-cancel-info">({ts}Your initial membership fee will be processed once you complete the confirmation step. You will be able to cancel the auto-renwal option by visiting the web page link that will be included in your receipt.{/ts})</div>
+                    <div class="description crm-auto-renew-cancel-info">({ts}Your initial membership fee will be processed once you complete the confirmation step. You will be able to cancel the auto-renewal option by visiting the web page link that will be included in your receipt.{/ts})</div>
 {/crmRegion}
                 {else}
 {crmRegion name="contribution-confirm-recur"}
index 70e2ab89341670262d70e4833516023efa3a9318..598a604859679b3fb3746be7d16ba5cba5f02563 100644 (file)
 {crmRegion name="contribution-thankyou-recur-membership"}
                     <br />
                     <strong>{ts 1=$frequency_interval 2=$frequency_unit}This membership will be renewed automatically every %1 %2(s).{/ts}</strong>
-                    <div class="description crm-auto-renew-cancel-info">({ts}You will receive an email receipt which includes information about how to cancel the auto-renwal option.{/ts})</div>
+                    <div class="description crm-auto-renew-cancel-info">({ts}You will receive an email receipt which includes information about how to cancel the auto-renewal option.{/ts})</div>
 {/crmRegion}
                 {else}
 {crmRegion name="contribution-thankyou-recur"}