diff --git a/lib/Db/Row2Mapper.php b/lib/Db/Row2Mapper.php index fd5a45902..509ff7196 100644 --- a/lib/Db/Row2Mapper.php +++ b/lib/Db/Row2Mapper.php @@ -725,7 +725,7 @@ private function insertOrUpdateCell(int $rowId, int $columnId, $value): void { if ($columnType == 'usergroup') { try { // TODO Maybe these should be a transaction? - $cellMapper->deleteAllForRow($row->getId()); + $cellMapper->deleteAllForRow($rowId); $this->insertCell($rowId, $columnId, $value); } catch (Exception $e) { $this->logger->error($e->getMessage(), ['exception' => $e]);