X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FExtension%2FManager%2FReport.php;h=dedbc6b7d85f15bda82fdd9cbe728472920a2cc5;hb=82e7a8b8a4054c4814900ddf5e8fc56d6819c134;hp=057d0f112705525953ca62aa8b838a23bc900a4f;hpb=a953e3e44d504c65ced19fac8c7ab8087d5f2072;p=civicrm-core.git diff --git a/CRM/Extension/Manager/Report.php b/CRM/Extension/Manager/Report.php index 057d0f1127..dedbc6b7d8 100644 --- a/CRM/Extension/Manager/Report.php +++ b/CRM/Extension/Manager/Report.php @@ -1,7 +1,7 @@ getCustomReportsByName(); - $cr = $this->getCustomReportsById(); - $id = $cr[$customReports[$info->key]]; + $cr = $this->getCustomReportsById(); + $id = $cr[$customReports[$info->key]]; $optionValue = CRM_Core_BAO_OptionValue::del($id); return $optionValue ? TRUE : FALSE; @@ -113,8 +111,8 @@ class CRM_Extension_Manager_Report extends CRM_Extension_Manager_Base { */ public function onPreDisable(CRM_Extension_Info $info) { $customReports = $this->getCustomReportsByName(); - $cr = $this->getCustomReportsById(); - $id = $cr[$customReports[$info->key]]; + $cr = $this->getCustomReportsById(); + $id = $cr[$customReports[$info->key]]; $optionValue = CRM_Core_BAO_OptionValue::setIsActive($id, 0); } @@ -123,8 +121,8 @@ class CRM_Extension_Manager_Report extends CRM_Extension_Manager_Base { */ public function onPreEnable(CRM_Extension_Info $info) { $customReports = $this->getCustomReportsByName(); - $cr = $this->getCustomReportsById(); - $id = $cr[$customReports[$info->key]]; + $cr = $this->getCustomReportsById(); + $id = $cr[$customReports[$info->key]]; $optionValue = CRM_Core_BAO_OptionValue::setIsActive($id, 1); } @@ -141,4 +139,5 @@ class CRM_Extension_Manager_Report extends CRM_Extension_Manager_Base { public function getCustomReportsById() { return CRM_Core_OptionGroup::values(self::REPORT_GROUP_NAME, FALSE, FALSE, FALSE, NULL, 'id', FALSE, TRUE); } + }