CRM-14196 - states missing from export fuzion fix - part 2 = resulting e-notice
authorEileen <eileen@fuzion.co.nz>
Mon, 24 Feb 2014 00:57:22 +0000 (13:57 +1300)
committerColeman Watts <coleman@civicrm.org>
Mon, 10 Mar 2014 17:13:45 +0000 (13:13 -0400)
CRM/Contact/BAO/Query.php

index d108d6eaa906410aa09e39c4ad2f2ba733e7a25a..df337ec92e90caef9e2b38f87600b84e44e12062 100644 (file)
@@ -765,13 +765,13 @@ class CRM_Contact_BAO_Query {
                   $this->_select[$name] = "contact_a.{$fieldName}  as `$name`";
                 }
               }
-              elseif (in_array($tName, array('state_province', 'country', 'county'))) {
-                $this->_pseudoConstantsSelect[$pf]['select'] = "{$field['where']} as `$name`";
-                $this->_pseudoConstantsSelect[$pf]['element'] = $name;
-                if ($tName == 'state_province') {
-                  $this->_pseudoConstantsSelect[$tName]['select'] = "{$field['where']} as `$name`";
-                  $this->_pseudoConstantsSelect[$tName]['element'] = $name;
-                }
+              elseif (in_array($tName, array('country', 'county'))) {
+                $this->_pseudoConstantsSelect[$name]['select'] = "{$field['where']} as `$name`";
+                $this->_pseudoConstantsSelect[$name]['element'] = $name;
+              }
+              elseif ($tName == 'state_province') {
+                $this->_pseudoConstantsSelect[$tName]['select'] = "{$field['where']} as `$name`";
+                $this->_pseudoConstantsSelect[$tName]['element'] = $name;
               }
               else {
                 $this->_select[$name] = "{$field['where']} as `$name`";