From: Coleman Watts Date: Tue, 24 Feb 2015 20:43:32 +0000 (-0500) Subject: CRM-16002 - Add is_hidden to default pseudoconstant filters X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=21d4b9c1a41ab66f799b754b3810c1816a8d30ef;p=civicrm-core.git CRM-16002 - Add is_hidden to default pseudoconstant filters --- 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"; }