* [task#122676,done,1h,0h] The stage of recalculating OR requirements and business research requirements when restoring deleted requirements.

This commit is contained in:
tanghucheng
2024-07-15 15:01:36 +08:00
committed by 谢杞钰
parent 0e7f4e57a9
commit bcf489fee6
+5
View File
@@ -1349,6 +1349,11 @@ class actionModel extends model
$this->recoverRelatedData($action, $object);
/* 还原已删除的需求时重算OR需求和业用研需的阶段。 */
/* The stage of recalculating OR requirements and industrial research needs when restoring deleted requirements. */
if(in_array($action->objectType, array('story', 'epic', 'requirement'))) $this->loadModel('story')->setStage($action->objectID);
if($action->objectType == 'demand' && !empty($object->parent)) $this->loadModel('demand')->updateParentDemandStage($object->parent);
/* 在action表中更新action记录。 */
/* Update action record in action table. */
$this->dao->update(TABLE_ACTION)->set('extra')->eq(actionModel::BE_UNDELETED)->where('id')->eq($actionID)->exec();