Merge branch release/21.7.2 of zentao/zentaopms (#9686)

This commit is contained in:
朱金勇
2025-06-19 16:02:45 +08:00
committed by Gitfox
2 changed files with 2 additions and 2 deletions
@@ -828,7 +828,7 @@ class actionTest
public function renderChangesTest(string $objectType, int $historyID = 0): string
{
$histories = $this->objectModel->dao->select('*')->from(TABLE_HISTORY)->where('id')->eq($historyID)->fetchAll('id', false);
$content = $this->objectModel->renderChanges($objectType, $histories, true);
$content = $this->objectModel->renderChanges($objectType, 0, $histories);
$content = str_replace("\n", '', $content);
return $content;
}
+1 -1
View File
@@ -33,4 +33,4 @@ r($action->renderChangesTest('')) && p('') && e('0'); // 测试type为
r($action->renderChangesTest('bug', 1)) && p('') && e('修改了 <strong><i>解决方案</i></strong>,旧值为 "oldValue",新值为 "newValue"。<br />'); // 测试bug解决方案历史记录
r($action->renderChangesTest('bug', 2)) && p('') && e('修改了 <strong><i>解决版本</i></strong>,旧值为 "oldValue",新值为 "newValue"。<br />'); // 测试bug解决版本历史记录
r($action->renderChangesTest('bug', 3)) && p('') && e('修改了 <strong><i>解决日期</i></strong>,旧值为 "oldValue",新值为 "newValue"。<br />'); // 测试bug解决日期历史记录
r($action->renderChangesTest('product', 4)) && p('') && e('修改了 <strong><i>状态</i></strong>,旧值为 "oldValue",新值为 "newValue"。<br />'); // 测试产品状态历史记录
r($action->renderChangesTest('product', 4)) && p('') && e('修改了 <strong><i>状态</i></strong>,旧值为 "oldValue",新值为 "newValue"。<br />'); // 测试产品状态历史记录