diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-12-10 08:54:52 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-12-10 08:54:52 +0300 |
commit | bc0fd9e52af40b00ec249e8de67ffff170ae8bf0 (patch) | |
tree | e81dd642947b7c8b4655ed6464dbe4a4dcee2fbc /core/DataTable.php | |
parent | 2727947cb009ba4c105d3cc033266bb12cf3b2ff (diff) |
this code is actually tested for in DataTableTest::test_serializeFails_onSubTableNotFound
Diffstat (limited to 'core/DataTable.php')
-rw-r--r-- | core/DataTable.php | 2 |
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 |