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:
authorsgiehl <stefan@piwik.org>2016-02-14 03:09:49 +0300
committersgiehl <stefan@piwik.org>2016-02-14 03:09:49 +0300
commit873c604083245020a4fc97ce12ffe3fa73e7b400 (patch)
treeb03244f11875141dcad4f6a7c77b1540d8bcaf78 /core
parentcbd47fe95cf8c37fe2350c784afc2c0186efa62f (diff)
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) {