projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78dd210
)
CRM-16906, added error message
author
Pradeep Nayak
<pradpnayak@gmail.com>
Fri, 28 Aug 2015 09:54:30 +0000
(15:24 +0530)
committer
Pradeep 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
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Campaign/BAO/Petition.php
b/CRM/Campaign/BAO/Petition.php
index 55f411550c9b73b8873e87915352941aef82bdb1..ded3df8b44c1c85f3dacfb2ee4a414498c7bf294 100644
(file)
--- a/
CRM/Campaign/BAO/Petition.php
+++ b/
CRM/Campaign/BAO/Petition.php
@@
-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;
}
}