From: Pratik Joshi Date: Thu, 20 Jun 2013 07:48:06 +0000 (+0530) Subject: CRM-12854 fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3f48e02b981abd5e4ac85a72d8635483b1f31adf;p=civicrm-core.git CRM-12854 fix --- diff --git a/CRM/Pledge/Form/Search.php b/CRM/Pledge/Form/Search.php index bc06b24853..b50355c8fd 100644 --- a/CRM/Pledge/Form/Search.php +++ b/CRM/Pledge/Form/Search.php @@ -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); diff --git a/templates/CRM/Pledge/Form/Search/Common.tpl b/templates/CRM/Pledge/Form/Search/Common.tpl index aabd13484a..7a5da7034f 100644 --- a/templates/CRM/Pledge/Form/Search/Common.tpl +++ b/templates/CRM/Pledge/Form/Search/Common.tpl @@ -32,18 +32,18 @@ -