* Refactor the update method in model of the bug module.

This commit is contained in:
daitingting
2023-05-08 01:18:27 +00:00
parent 0171028d96
commit b6518ea0d8
9 changed files with 342 additions and 278 deletions
+4 -2
View File
@@ -795,10 +795,12 @@ class bugTest
$_POST[$field] = $value;
}
}
$_POST['closedDate'] = '';
//$_POST['closedDate'] = '';
$_POST['deleteFiles'] = array();
$object->files = array();
$change = $this->objectModel->update($bugID);
$change = $this->objectModel->update((object)$_POST, $object);
if($change == array()) $change = '没有数据更新';
unset($_POST);