CRM-12639-minor-fix-for-state-name-display : state abbreviations were getting display...
authorPratik Joshi <pratik.joshi@webaccess.co.in>
Tue, 6 Aug 2013 14:48:14 +0000 (20:18 +0530)
committerPratik Joshi <pratik.joshi@webaccess.co.in>
Tue, 6 Aug 2013 14:48:14 +0000 (20:18 +0530)
CRM/Contact/Selector.php

index f315bb2edcf2026591e13a9aa447bd2ed0e77e12..90f9c3e41a844a8bba48983cb628833cd8564956 100644 (file)
@@ -660,6 +660,9 @@ class CRM_Contact_Selector extends CRM_Core_Selector_Base implements CRM_Core_Se
           $greeting = $property . '_display';
           $row[$property] = $result->$greeting;
         }
+        elseif ($property == 'state_province') {
+          $row[$property] = $result->state_province_name;
+        }
         elseif (isset($pseudoconstants[$property])) {
           $row[$property] = CRM_Utils_Array::value(
             $result->{$pseudoconstants[$property]['dbName']},