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:
8891007
)
CRM-16002 - Add is_hidden to default pseudoconstant filters
author
Coleman Watts
<coleman@civicrm.org>
Tue, 24 Feb 2015 20:43:32 +0000
(15:43 -0500)
committer
Coleman Watts
<coleman@civicrm.org>
Tue, 24 Feb 2015 20:43:32 +0000
(15:43 -0500)
CRM/Core/PseudoConstant.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Core/PseudoConstant.php
b/CRM/Core/PseudoConstant.php
index 91ba2e6fc24fe7b70ed8ef440ea9296435180cfb..b5c9e5c2b9f6fc4e46b3a0b0ebb4fe8bfcd0ce5b 100644
(file)
--- a/
CRM/Core/PseudoConstant.php
+++ b/
CRM/Core/PseudoConstant.php
@@
-358,7
+358,7
@@
class CRM_Core_PseudoConstant {
}
// onlyActive param will automatically filter on common flags
if (!empty($params['onlyActive'])) {
- foreach (array('is_active' => 1, 'is_deleted' => 0, 'is_test' => 0) as $flag => $val) {
+ foreach (array('is_active' => 1, 'is_deleted' => 0, 'is_test' => 0
, 'is_hidden' => 0
) as $flag => $val) {
if (in_array($flag, $availableFields)) {
$wheres[] = "$flag = $val";
}