Commit 4760cbe3 authored by metzlerd's avatar metzlerd
Browse files

Small fix to make sure include table with graph gets processed

correctly. 
parent 70ee4301
...@@ -170,7 +170,6 @@ class FrxSVGGraph extends FrxRenderer { ...@@ -170,7 +170,6 @@ class FrxSVGGraph extends FrxRenderer {
} }
// Deal with rare case where legend are supposed to come from data // Deal with rare case where legend are supposed to come from data
if (isset($this->field_sources['legend_entries'])) { if (isset($this->field_sources['legend_entries'])) {
...@@ -206,7 +205,8 @@ class FrxSVGGraph extends FrxRenderer { ...@@ -206,7 +205,8 @@ class FrxSVGGraph extends FrxRenderer {
$svg = $nodes[0]; $svg = $nodes[0];
$config = $this->mergedAttributes($svg); $config = $this->mergedAttributes($svg);
} }
$table_nodes = $this->reportDocNode->xpath('table');
$config['gen_table'] = $table_nodes ? 1 : 0;
// Determine graph type // Determine graph type
$graph_type = isset($config['type']) ? $config['type'] : 'BarGraph'; $graph_type = isset($config['type']) ? $config['type'] : 'BarGraph';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment