diff --git a/core/DataTable.php b/core/DataTable.php index c7435b2b3cc..895645af0fb 100644 --- a/core/DataTable.php +++ b/core/DataTable.php @@ -1118,6 +1118,8 @@ public function getSerialized($maximumRowsInDataTable = null, $depth++; $aSerializedDataTable = $aSerializedDataTable + $subTable->getSerialized($maximumRowsInSubDataTable, $maximumRowsInSubDataTable, $columnToSortByBeforeTruncation); $depth--; + } else { + $row->removeSubtable(); } } // we load the current Id of the DataTable