X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContribute%2FPseudoConstant.php;h=26110dc06abcc9d266b947b4c615611048c7aa77;hb=d73f286ebb86302a8caa2ff193613bfce0d810d8;hp=1cc6cd9859b1a1825844695164305d717aac32bb;hpb=74862f0d526c32a0ba7fb3b2c9ae18a04648843c;p=civicrm-core.git diff --git a/CRM/Contribute/PseudoConstant.php b/CRM/Contribute/PseudoConstant.php index 1cc6cd9859..26110dc06a 100644 --- a/CRM/Contribute/PseudoConstant.php +++ b/CRM/Contribute/PseudoConstant.php @@ -101,13 +101,17 @@ class CRM_Contribute_PseudoConstant extends CRM_Core_PseudoConstant { * * * @param int $id + * @param bool $includeDisabled * * @return array * array reference of all financial types if any */ - public static function &financialType($id = NULL) { + public static function &financialType($id = NULL, $includeDisabled = FALSE) { if (!self::$financialType) { - $condition = " is_active = 1 "; + $condition = ""; + if (!$includeDisabled) { + $condition = " is_active = 1 "; + } CRM_Core_PseudoConstant::populate( self::$financialType, 'CRM_Financial_DAO_FinancialType',