Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add chartEnabled to expectedSmartyVariables for reports #23045

Merged
merged 1 commit into from
Mar 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions CRM/Report/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class CRM_Report_Form extends CRM_Core_Form {
*
* @var string[]
*/
public $expectedSmartyVariables = ['pager', 'skip', 'sections', 'grandStat'];
public $expectedSmartyVariables = ['pager', 'skip', 'sections', 'grandStat', 'chartEnabled'];

/**
* Deprecated constant, Reports should be updated to use the getRowCount function.
Expand Down Expand Up @@ -2582,7 +2582,7 @@ public function formatDisplay(&$rows, $pager = TRUE) {

/**
* @param $value
* @param $row
* @param array $row
* @param $selectedfield
* @param $criteriaFieldName
*
Expand All @@ -2603,7 +2603,7 @@ protected function alterStateProvinceID($value, &$row, $selectedfield, $criteria

/**
* @param $value
* @param $row
* @param array $row
* @param $selectedField
* @param $criteriaFieldName
*
Expand All @@ -2623,7 +2623,7 @@ protected function alterCountryID($value, &$row, $selectedField, $criteriaFieldN

/**
* @param $value
* @param $row
* @param array $row
* @param $selectedfield
* @param $criteriaFieldName
*
Expand All @@ -2643,7 +2643,7 @@ protected function alterCountyID($value, &$row, $selectedfield, $criteriaFieldNa

/**
* @param $value
* @param $row
* @param array $row
* @param $selectedfield
* @param $criteriaFieldName
*
Expand All @@ -2655,7 +2655,7 @@ protected function alterLocationTypeID($value, &$row, $selectedfield, $criteriaF

/**
* @param $value
* @param $row
* @param array $row
* @param $fieldname
*
* @return mixed
Expand All @@ -2682,7 +2682,7 @@ protected function alterContactID($value, &$row, $fieldname) {

/**
* @param $value
* @param $row
* @param array $row
* @param $fieldname
*
* @return mixed
Expand Down Expand Up @@ -2866,7 +2866,7 @@ public function select() {
* @param string $tableName
* @param string $tableKey
* @param string $fieldName
* @param string $field
* @param array $field
*
* @return bool
*/
Expand Down Expand Up @@ -5147,8 +5147,8 @@ protected function setOutputMode() {
/**
* CRM-17793 - Alter DateTime section header to group by date from the datetime field.
*
* @param $tempTable
* @param $columnName
* @param string $tempTable
* @param string $columnName
*/
public function alterSectionHeaderForDateTime($tempTable, $columnName) {
// add new column with date value for the datetime field
Expand Down Expand Up @@ -5955,7 +5955,7 @@ protected function storeGroupByArray() {
}

/**
* @param $options
* @param array $options
*
* @return array
*/
Expand Down