Skip to content

Commit 3fbc50f

Browse files
committed
Improve support for custom configuration of ReportContainers
Previously any configuration that was made via makeConfig() before being passed to the ReportContainer would cause it to break. This fixes that issue.
1 parent b897eeb commit 3fbc50f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/backend/widgets/ReportContainer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function __construct($controller, $configuration = null)
8282
$configuration = 'config_report_container.yaml';
8383
}
8484

85-
if (!is_array($configuration)) {
85+
if (is_string($configuration)) {
8686
$path = $controller->getConfigPath($configuration);
8787
if (File::isFile($path)) {
8888
$configuration = $this->makeConfig($path);

0 commit comments

Comments
 (0)