CRM-16906, added error message
authorPradeep Nayak <pradpnayak@gmail.com>
Fri, 28 Aug 2015 09:54:30 +0000 (15:24 +0530)
committerPradeep Nayak <pradpnayak@gmail.com>
Fri, 28 Aug 2015 09:54:30 +0000 (15:24 +0530)
----------------------------------------
* CRM-16906: Ensure safe chars for Petition cookies
  https://issues.civicrm.org/jira/browse/CRM-16906

CRM/Campaign/BAO/Petition.php

index 55f411550c9b73b8873e87915352941aef82bdb1..ded3df8b44c1c85f3dacfb2ee4a414498c7bf294 100644 (file)
@@ -279,7 +279,7 @@ AND         tag_id = ( SELECT id FROM civicrm_tag WHERE name = %2 )";
       return TRUE;
     }
     else {
-      // TODO: raise an error?
+      CRM_Core_Error::fatal(ts('Petition Id and/or Activity Id is not of the type Positive.'));
       return FALSE;
     }
   }