notice fixes, CRM-14952
authorkurund <kurund@civicrm.org>
Fri, 11 Jul 2014 13:09:39 +0000 (18:39 +0530)
committerkurund <kurund@civicrm.org>
Fri, 11 Jul 2014 13:09:39 +0000 (18:39 +0530)
----------------------------------------
* CRM-14952: Sorting on state in search throws FATAL error: Database Error Code: Unknown column 'civicrm_state_province.name' in 'field list'
  https://issues.civicrm.org/jira/browse/CRM-14952

CRM/Contact/BAO/Query.php

index 32d19ab5a93e2a690ad74307029bb54900333bfa..9dc6990f5e167e928ba935a91cb3fcc534bd2829 100644 (file)
@@ -5501,7 +5501,7 @@ AND   displayRelType.is_active = 1
           $dao->$idColumn = $val;
 
           if ($key == 'state_province_name') {
-            $dao->$value['pseudoField'] = CRM_Core_PseudoConstant::stateProvinceAbbreviation($val);
+            $dao->$value['pseudoField'] = $dao->$key = CRM_Core_PseudoConstant::stateProvinceAbbreviation($val);
           }
           else {
             $dao->$value['pseudoField'] = $dao->$key = CRM_Core_PseudoConstant::getLabel($baoName, $value['pseudoField'], $val);