Skip to content

Commit 6c32488

Browse files
authored
[dashboard] fix not load "Total recruitment by Age" and "Ethnicity at Screening" (#10089)
The charts do not currently load, because the URI class returned from `getAttribute()` does not have a getURI() method. It is already a URI.
1 parent ed5e2ce commit 6c32488

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/statistics/php/charts.class.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class Charts extends \NDB_Page
8282
// when splitting the path, then there should be exactly 2 parts left,
8383
// "charts", and the endpoint requested.
8484
$url = ltrim(
85-
$request->getAttribute("unhandledURI")->getURI()->getPath(),
85+
$request->getAttribute("unhandledURI")->getPath(),
8686
'/'
8787
);
8888

0 commit comments

Comments
 (0)