Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorThomas Steur <tsteur@users.noreply.github.com>2016-02-15 09:43:19 +0300
committerThomas Steur <tsteur@users.noreply.github.com>2016-02-15 09:43:19 +0300
commitf6a038b788dbcabfa97ed32d7dc66e58d27bb5c3 (patch)
treec1482dab6fc0075e8308d39050b8fc06bef4ad3c /core
parent63a410726a18bf7f10bcd0ef028c3862c9a83974 (diff)
parent2a9a998f6aa831640d338d0ca16918a33937576a (diff)
Merge pull request #9778 from piwik/fixmetadataformergedsubtables
Reuse datatable's metadata when merging subtables
Diffstat (limited to 'core')
-rw-r--r--core/DataTable.php1
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) {