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:
a350720
)
CRM-13283 - Change sanity check on severity now that severity can be 0 but not null
author
Jon goldberg
<jon@palantetech.coop>
Tue, 28 Apr 2015 21:53:59 +0000
(15:53 -0600)
committer
Jon goldberg
<jon@palantetech.coop>
Tue, 21 Jul 2015 20:38:18 +0000
(16:38 -0400)
CRM/Core/BAO/StatusPreference.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Core/BAO/StatusPreference.php
b/CRM/Core/BAO/StatusPreference.php
index cecec3ec20c704395dac4eb043a436a6e00294af..7765c28f85a94b3097698f72a1bd2d4996f073aa 100644
(file)
--- a/
CRM/Core/BAO/StatusPreference.php
+++ b/
CRM/Core/BAO/StatusPreference.php
@@
-61,7
+61,7
@@
class CRM_Core_BAO_StatusPreference extends CRM_Core_DAO_StatusPreference {
CRM_Core_Error::fatal(ts('You can not pass a severity level higher than 7.'));
}
// If severity is now blank, you have an invalid severity string.
- if (
!$params['ignore_severity']
) {
+ if (
is_null($params['ignore_severity'])
) {
CRM_Core_Error::fatal(ts('Invalid string passed as severity level.'));
}