CRM-17354: Tell a Friend email field should be trimmed
authoryashodha <yashodha.chaku@webaccessglobal.com>
Fri, 16 Oct 2015 09:41:30 +0000 (15:11 +0530)
committeryashodha <yashodha.chaku@webaccessglobal.com>
Fri, 16 Oct 2015 09:41:30 +0000 (15:11 +0530)
----------------------------------------
* CRM-17354: Tell a Friend email field should be trimmed
  https://issues.civicrm.org/jira/browse/CRM-17354

CRM/Friend/Form.php

index 7c0b7e18bd9fa123e879f77978fbec4911c91d1b..5c0278aecdbcd4884a7999222c721b79ee81f8b9 100644 (file)
@@ -179,6 +179,7 @@ class CRM_Friend_Form extends CRM_Core_Form {
    * @return void
    */
   public function buildQuickForm() {
+    $this->applyFilter('__ALL__', 'trim');
     // Details of User
     $name = &$this->add('text',
       'from_name',