* Bug fix for editing a MR.

This commit is contained in:
dingguodong
2021-08-23 10:41:37 +08:00
parent 2c0afdeedc
commit 807ad4b4e8
5 changed files with 15 additions and 13 deletions
+3 -4
View File
@@ -164,12 +164,12 @@ class mrModel extends model
}
/**
* Update MR function.
* Edit MR function.
*
* @access public
* @return void
*/
public function update($MRID)
public function edit($MRID)
{
/* Get MR in zentao database and do not append extra attributes in GitLab. */
$MR = $this->getByID($MRID, $process = false);
@@ -189,11 +189,10 @@ class mrModel extends model
/* Update MR in Zentao database. */
$this->dao->update(TABLE_MR)->data($MR)
->batchCheck($this->config->MR->update->requiredFields, 'notempty')
->batchCheck($this->config->MR->edit->requiredFields, 'notempty')
->autoCheck()
->exec();
if(dao::isError()) return false;
}
/**