Version 4.7.23
This commit is contained in:
1 parent
7124a02564
commit
25ddeb65d6
1791 files changed
+76990
-44452
No files matched your search
@@ -124,7 +124,20 @@ abstract class _Chart
|
||||
|
||||
$extension = static::loadFromController( $data['chart_controller'] );
|
||||
$chart = $extension->getChart( $url );
|
||||
$chart->currentFilters = json_decode( $data['chart_configuration'], true );
|
||||
$currentFilters = array();
|
||||
foreach( json_decode( $data['chart_configuration'], true ) AS $k => $v )
|
||||
{
|
||||
if ( mb_substr( $k, 0, 11 ) == 'customform_' )
|
||||
{
|
||||
$currentFilters[ mb_substr( $k, 11 ) ] = $v;
|
||||
}
|
||||
else
|
||||
{
|
||||
$currentFilters[ $k ] = $v;
|
||||
}
|
||||
}
|
||||
|
||||
$chart->savedCustomFilters = $currentFilters;
|
||||
$chart->timescale = $data['chart_timescale'] ?? $chart->timescale;
|
||||
$chart->title = $data['chart_title'];
|
||||
$chart->showFilterTabs = FALSE;
|
||||
|
||||
Reference in new issue
Block a user