diff --git a/plugins/CustomVariables/Reports/GetCustomVariables.php b/plugins/CustomVariables/Reports/GetCustomVariables.php index 275acb25ef4dceadbf2bfc9a477873670261d6a6..b19b5ba7c67d6ef00bab205d0c194f9c3e6ef580 100644 --- a/plugins/CustomVariables/Reports/GetCustomVariables.php +++ b/plugins/CustomVariables/Reports/GetCustomVariables.php @@ -36,9 +36,10 @@ class GetCustomVariables extends Base $view->requestConfig->filter_sort_column = 'nb_actions'; $view->requestConfig->filter_sort_order = 'desc'; - $view->config->filters[] = function (DataTable $table) use ($view) { + $that = $this; + $view->config->filters[] = function (DataTable $table) use ($view, $that) { if($this->isReportContainsUnsetVisitsColumns($table)) { - $message = $this->getFooterMessageExplanationMissingMetrics(); + $message = $that->getFooterMessageExplanationMissingMetrics(); $view->config->show_footer_message = $message; } };