Skip to content

Commit b9d6dc8

Browse files
authored
add aggregation ops to new datatable instance as metadata (matomo-org#21343)
1 parent 6c17b2d commit b9d6dc8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

core/DataTable/Row.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -844,6 +844,7 @@ public function sumRowWithLabelToSubtable(string $label, array $columns, ?array
844844
$subtable = $this->getSubtable();
845845
if (empty($subtable)) {
846846
$subtable = new DataTable();
847+
$subtable->setMetadata(DataTable::COLUMN_AGGREGATION_OPS_METADATA_NAME, $aggregationOps);
847848
$this->setSubtable($subtable);
848849
}
849850

0 commit comments

Comments
 (0)