From d957af7fd90cb096ab76e90d8554aa69eb94cc26 Mon Sep 17 00:00:00 2001 From: sunhao Date: Tue, 29 Apr 2025 16:36:16 +0800 Subject: [PATCH] * [misc] fix sonar error. --- module/doc/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/doc/model.php b/module/doc/model.php index 872eab96f1..8a46e37e18 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -1629,7 +1629,7 @@ class docModel extends model $docContent->addedBy = $docContent->editedBy; $docContent->addedDate = $docContent->editedDate; $docContent->files = implode(',', $files); - $docContent->fromVersion = isset($doc->fromVersion) ? $doc->fromVersion : ($version - 1); + $docContent->fromVersion = isset($docData->fromVersion) ? $docData->fromVersion : ($version - 1); $this->dao->insert(TABLE_DOCCONTENT)->data($docContent)->exec(); $docContent->id = $this->dao->lastInsertID(); }