* Refactor the update method in model of the bug module.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user