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
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2014-12-10 08:54:52 +0300
committermattab <matthieu.aubry@gmail.com>2014-12-10 08:54:52 +0300
commitbc0fd9e52af40b00ec249e8de67ffff170ae8bf0 (patch)
treee81dd642947b7c8b4655ed6464dbe4a4dcee2fbc /core/DataTable.php
parent2727947cb009ba4c105d3cc033266bb12cf3b2ff (diff)
this code is actually tested for in DataTableTest::test_serializeFails_onSubTableNotFound
Diffstat (limited to 'core/DataTable.php')
-rw-r--r--core/DataTable.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/DataTable.php b/core/DataTable.php
index c7435b2b3c..895645af0f 100644
--- a/core/DataTable.php
+++ b/core/DataTable.php
@@ -1118,6 +1118,8 @@ class DataTable implements DataTableInterface, \IteratorAggregate, \ArrayAccess
$depth++;
$aSerializedDataTable = $aSerializedDataTable + $subTable->getSerialized($maximumRowsInSubDataTable, $maximumRowsInSubDataTable, $columnToSortByBeforeTruncation);
$depth--;
+ } else {
+ $row->removeSubtable();
}
}
// we load the current Id of the DataTable