* finish task #1295.

This commit is contained in:
wangyidong
2016-02-15 17:29:23 +08:00
parent 1f9055b610
commit e8bb9aa1ee
12 changed files with 46 additions and 9 deletions
+7
View File
@@ -393,6 +393,13 @@ class bugModel extends model
public function update($bugID)
{
$oldBug = $this->getById($bugID);
if($oldBug->lastEditedDate != $this->post->lastEditedDate)
{
dao::$errors[] = $this->lang->error->hasEdited;
return false;
}
unset($_POST['lastEditedDate']);
$now = helper::now();
$bug = fixer::input('post')
->cleanInt('product,module,severity,project,story,task')