From 21d4b9c1a41ab66f799b754b3810c1816a8d30ef Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 24 Feb 2015 15:43:32 -0500 Subject: [PATCH] CRM-16002 - Add is_hidden to default pseudoconstant filters --- CRM/Core/PseudoConstant.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/PseudoConstant.php b/CRM/Core/PseudoConstant.php index 91ba2e6fc2..b5c9e5c2b9 100644 --- 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"; } -- 2.25.1