diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2016-02-15 09:43:19 +0300 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2016-02-15 09:43:19 +0300 |
commit | f6a038b788dbcabfa97ed32d7dc66e58d27bb5c3 (patch) | |
tree | c1482dab6fc0075e8308d39050b8fc06bef4ad3c /core | |
parent | 63a410726a18bf7f10bcd0ef028c3862c9a83974 (diff) | |
parent | 2a9a998f6aa831640d338d0ca16918a33937576a (diff) |
Merge pull request #9778 from piwik/fixmetadataformergedsubtables
Reuse datatable's metadata when merging subtables
Diffstat (limited to 'core')
-rw-r--r-- | core/DataTable.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/DataTable.php b/core/DataTable.php index 221af5315a..0b68a96f50 100644 --- a/core/DataTable.php +++ b/core/DataTable.php @@ -1714,6 +1714,7 @@ class DataTable implements DataTableInterface, \IteratorAggregate, \ArrayAccess public function mergeSubtables($labelColumn = false, $useMetadataColumn = false) { $result = new DataTable(); + $result->setAllTableMetadata($this->getAllTableMetadata()); foreach ($this->getRowsWithoutSummaryRow() as $row) { $subtable = $row->getSubtable(); if ($subtable !== false) { |