* [misc] Fix the bug of stage compute.

This commit is contained in:
xieqiyu
2024-07-17 17:46:28 +08:00
committed by 唐胡成
parent bcd0fd7c2a
commit 64adbc1a74
+8 -3
View File
@@ -1450,12 +1450,17 @@ class storyTao extends storyModel
if($parentStage != $parent->stage && $parent->status != 'closed')
{
if(!empty($parent->demand)) $demandList[$parent->demand] = $parent->demand;
$this->dao->update(TABLE_STORY)->set('stage')->eq($parentStage)->where('id')->eq($parent->id)->exec();
if($this->config->edition == 'ipd')
{
if(!empty($parent->demand)) $demandList[$parent->demand] = $parent->demand;
if(!empty($story->demand)) $demandList[$story->demand] = $story->demand;
if(!empty($demandList)) $this->loadModel('demand')->updateDemandStage($demandList);
}
if($parent->parent > 0) $this->computeParentStage($parent);
}
if($this->config->edition == 'ipd' && !empty($demandList)) $this->loadModel('demand')->updateDemandStage($demandList);
}
/**