This commit is contained in:
zhaoke
2023-10-10 10:53:44 +08:00
parent ef37c5e9fa
commit 5676118d7f
+3 -2
View File
@@ -428,8 +428,9 @@ class mrModel extends model
$MR = $this->getByID($MRID);
$this->linkObjects($MR);
$this->loadModel('action')->create('mr', $MRID, 'edited');
$changes = common::createChanges($oldMR, $MR);
$actionID = $this->loadModel('action')->create('mr', $MRID, 'edited');
if(!empty($changes)) $this->action->logHistory($actionID, $changes);
$this->createMRLinkedAction($MRID, 'editmr', $MR->editedDate);
if(dao::isError()) return array('result' => 'fail', 'message' => dao::getError());