diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2020-04-06 23:43:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-06 23:43:32 +0300 |
commit | 7af49eeac6dde210a2fcfe1da760c0244881a6cb (patch) | |
tree | d3c519f8525176a0017bfe34f570669675667033 | |
parent | bc6ec46620be2805792da6fdfe5f541f9134ca7f (diff) |
Avoid possible error subtable already exists but not loaded (#15779)
-rw-r--r-- | core/Archive/DataTableFactory.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/Archive/DataTableFactory.php b/core/Archive/DataTableFactory.php index fdc69a5f54..dfa04da14c 100644 --- a/core/Archive/DataTableFactory.php +++ b/core/Archive/DataTableFactory.php @@ -404,13 +404,17 @@ class DataTableFactory foreach ($dataTable->getRowsWithoutSummaryRow() as $row) { $row->removeSubtable(); } + $summaryRow = $dataTable->getRowFromId(DataTable::ID_SUMMARY_ROW); + if ($summaryRow) { + $summaryRow->removeSubtable(); + } return; } $dataName = reset($this->dataNames); - foreach ($dataTable->getRowsWithoutSummaryRow() as $row) { + foreach ($dataTable->getRows() as $row) { $sid = $row->getIdSubDataTable(); if ($sid === null) { continue; |