CRM-12854 fix
authorPratik Joshi <pratik.joshi@webaccess.co.in>
Thu, 20 Jun 2013 07:48:06 +0000 (13:18 +0530)
committerPratik Joshi <pratik.joshi@webaccess.co.in>
Thu, 20 Jun 2013 07:48:06 +0000 (13:18 +0530)
CRM/Pledge/Form/Search.php
templates/CRM/Pledge/Form/Search/Common.tpl

index bc06b24853b766ca996e5b10d79aa1f4038d7dde..b50355c8fd7d1d4653986c5111eb5462a4bdbe92 100644 (file)
@@ -313,6 +313,12 @@ class CRM_Pledge_Form_Search extends CRM_Core_Form {
       $this->_formValues["pledge_test"] = 0;
     }
 
+    foreach (array('pledge_amount_low', 'pledge_amount_high') as $f) {
+      if (isset($this->_formValues[$f])) {
+        $this->_formValues[$f] = CRM_Utils_Rule::cleanMoney($this->_formValues[$f]);
+      }
+    }
+
     if (isset($this->_ssID) && empty($_POST)) {
       // if we are editing / running a saved search and the form has not been posted
       $this->_formValues = CRM_Contact_BAO_SavedSearch::getFormValues($this->_ssID);
index aabd13484aa61418e1c3d2d1518e21d61a3edfc4..7a5da7034f21bad7908c34b179f4950ba36f3cdc 100644 (file)
 </tr>
 <tr>
   <td colspan="2">
-    <label>{ts}Pledge Payment Status{/ts}
+    <label>{ts}Pledge Payment Status{/ts}</label>
       <br />{$form.pledge_payment_status_id.html}
   </td>
 </tr>
 <tr>
   <td>
-    <label>{ts}Pledge Amounts{/ts}
+    <label>{ts}Pledge Amounts{/ts}</label>
       <br />
     {$form.pledge_amount_low.label} {$form.pledge_amount_low.html} &nbsp;&nbsp; {$form.pledge_amount_high.label} {$form.pledge_amount_high.html}
   </td>
   <td>
-    <label>{ts}Pledge Status{/ts}
+    <label>{ts}Pledge Status{/ts}</label>
       <br />{$form.pledge_status_id.html}
   </td>
 </tr>