From c68c214d0f15ef48ed0e46b978c3072fa5a0cce0 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Mon, 21 Aug 2023 14:02:11 +0800 Subject: [PATCH] * Modify unit test of bugTest::assign. --- module/bug/test/bug.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/bug/test/bug.class.php b/module/bug/test/bug.class.php index 6b887fb48a..d2ca4ef038 100644 --- a/module/bug/test/bug.class.php +++ b/module/bug/test/bug.class.php @@ -347,8 +347,9 @@ class bugTest */ public function assignTest(object $bug): array|object { + $oldBug = $this->objectModel->getByID($bug->id); $_SERVER['HTTP_HOST'] = ''; - $this->objectModel->assign($bug); + $this->objectModel->assign($bug, $oldBug); if(dao::isError()) { return dao::getError();