Aborting commit due to empty commit message

This commit is contained in:
wangxiaomeng
2022-04-14 13:56:03 +08:00
parent dee641a3b6
commit b085ec1029
+1 -5
View File
@@ -673,11 +673,6 @@ class bugModel extends model
dao::$errors[] = $this->lang->error->editedByOther;
return false;
}
if(empty($_POST['assignedTo']) and $oldBug->status == 'closed'){
$_POST['assignedTo'] = 'closed';
}
$now = helper::now();
$bug = fixer::input('post')
->cleanInt('product,module,severity,project,execution,story,task,branch')
@@ -705,6 +700,7 @@ class bugModel extends model
->setIF($this->post->closedBy != '' or $this->post->closedDate != '', 'status', 'closed')
->setIF(($this->post->resolution != '' or $this->post->resolvedDate != '') and $this->post->assignedTo == '', 'assignedTo', $oldBug->openedBy)
->setIF(($this->post->resolution != '' or $this->post->resolvedDate != '') and $this->post->assignedTo == '', 'assignedDate', $now)
->setIF($this->post->assignedTo == '' and $oldBug->status == 'closed', 'assignedTo', 'closed')
->setIF($this->post->resolution == '' and $this->post->resolvedDate =='', 'status', 'active')
->setIF($this->post->resolution != '', 'confirmed', 1)
->setIF($this->post->story != false and $this->post->story != $oldBug->story, 'storyVersion', $this->loadModel('story')->getVersion($this->post->story))