Merge branch ztflow-sunguangming-dev/bug-62797#sunguangming of zentao/zentaopms (#8955)
This commit is contained in:
@@ -1771,18 +1771,18 @@ class storyModel extends model
|
||||
$allChanges[$storyID] = common::createChanges($oldStory, $story);
|
||||
if($story->plan != $oldStory->plan and !empty($oldStory->plan) and $oldStory->type == 'story')
|
||||
{
|
||||
foreach(explode(',', (string)$oldStory->plan) as $planID)
|
||||
foreach(explode(',', (string)$oldStory->plan) as $oldPlanID)
|
||||
{
|
||||
if(!$planID) continue;
|
||||
$unlinkPlans[$planID] = empty($unlinkPlans[$planID]) ? $storyID : "{$unlinkPlans[$planID]},$storyID";
|
||||
if(!$oldPlanID) continue;
|
||||
$unlinkPlans[$oldPlanID] = empty($unlinkPlans[$oldPlanID]) ? $storyID : "{$unlinkPlans[$oldPlanID]},$storyID";
|
||||
}
|
||||
}
|
||||
if($story->plan != $oldStory->plan and !empty($story->plan))
|
||||
{
|
||||
foreach(explode(',', (string)$story->plan) as $planID)
|
||||
foreach(explode(',', (string)$story->plan) as $newPlanID)
|
||||
{
|
||||
if(!$planID) continue;
|
||||
$link2Plans[$planID] = empty($link2Plans[$planID]) ? $storyID : "{$link2Plans[$planID]},$storyID";
|
||||
if(!$newPlanID) continue;
|
||||
$link2Plans[$newPlanID] = empty($link2Plans[$newPlanID]) ? $storyID : "{$link2Plans[$newPlanID]},$storyID";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,18 +8,18 @@ timeout=0
|
||||
cid=0
|
||||
|
||||
- 批量修改6个需求的计划,查看被修改计划的需求数量 @4
|
||||
- 批量修改6个需求的计划,查看被修改计划的需求数量 @3
|
||||
- 批量修改6个需求的计划,查看被修改计划的需求数量 @4
|
||||
- 批量修改6个需求的计划,查看需求1修改后的计划ID第1条的plan属性 @10
|
||||
- 批量修改6个需求的计划,查看需求2修改后的计划ID第2条的plan属性 @10
|
||||
- 批量修改6个需求的计划,查看需求4修改后的计划ID第4条的plan属性 @2,10
|
||||
- 批量修改6个需求的计划,查看需求5修改后的计划ID第5条的plan属性 @10
|
||||
- 批量修改6个需求的计划,查看需求1修改后的计划ID第1条的plan属性 @10,9
|
||||
- 批量修改6个需求的计划,查看需求2修改后的计划ID第2条的plan属性 @9
|
||||
- 批量修改6个需求的计划,查看需求4修改后的计划ID第4条的plan属性 @2,10
|
||||
- 批量修改6个需求的计划,查看需求4修改后的计划ID第4条的plan属性 @2,9
|
||||
- 批量修改6个需求的计划,查看需求1修改后的计划ID第1条的plan属性 @10,9,5
|
||||
- 批量修改6个需求的计划,查看需求2修改后的计划ID第2条的plan属性 @5
|
||||
- 批量修改6个需求的计划,查看需求4修改后的计划ID第4条的plan属性 @2,10,5
|
||||
- 批量修改6个需求的计划,查看需求5修改后的计划ID第5条的plan属性 @10,5
|
||||
- 批量修改6个需求的计划,查看需求4修改后的计划ID第4条的plan属性 @2,5
|
||||
- 批量修改6个需求的计划,查看需求5修改后的计划ID第5条的plan属性 @10,9,5
|
||||
|
||||
*/
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
@@ -51,15 +51,15 @@ $stories2 = $story->batchChangePlanTest($storyIdList, 9);
|
||||
$stories3 = $story->batchChangePlanTest($storyIdList, 5, 9);
|
||||
|
||||
r(count($stories1)) && p() && e('4'); // 批量修改6个需求的计划,查看被修改计划的需求数量
|
||||
r(count($stories2)) && p() && e('3'); // 批量修改6个需求的计划,查看被修改计划的需求数量
|
||||
r(count($stories2)) && p() && e('4'); // 批量修改6个需求的计划,查看被修改计划的需求数量
|
||||
r($stories1) && p('1:plan') && e('10'); // 批量修改6个需求的计划,查看需求1修改后的计划ID
|
||||
r($stories1) && p('2:plan') && e('10'); // 批量修改6个需求的计划,查看需求2修改后的计划ID
|
||||
r($stories1) && p('4:plan', '|') && e('2,10'); // 批量修改6个需求的计划,查看需求4修改后的计划ID
|
||||
r($stories1) && p('5:plan') && e('10'); // 批量修改6个需求的计划,查看需求5修改后的计划ID
|
||||
r($stories2) && p('1:plan', '|') && e('10,9'); // 批量修改6个需求的计划,查看需求1修改后的计划ID
|
||||
r($stories2) && p('2:plan') && e('9'); // 批量修改6个需求的计划,查看需求2修改后的计划ID
|
||||
r($stories2) && p('4:plan', '|') && e('2,10'); // 批量修改6个需求的计划,查看需求4修改后的计划ID
|
||||
r($stories2) && p('4:plan', '|') && e('2,9'); // 批量修改6个需求的计划,查看需求4修改后的计划ID
|
||||
r($stories3) && p('1:plan', '|') && e('10,9,5'); // 批量修改6个需求的计划,查看需求1修改后的计划ID
|
||||
r($stories3) && p('2:plan') && e('5'); // 批量修改6个需求的计划,查看需求2修改后的计划ID
|
||||
r($stories3) && p('4:plan', '|') && e('2,10,5'); // 批量修改6个需求的计划,查看需求4修改后的计划ID
|
||||
r($stories3) && p('5:plan', '|') && e('10,5'); // 批量修改6个需求的计划,查看需求5修改后的计划ID
|
||||
r($stories3) && p('4:plan', '|') && e('2,5'); // 批量修改6个需求的计划,查看需求4修改后的计划ID
|
||||
r($stories3) && p('5:plan', '|') && e('10,9,5'); // 批量修改6个需求的计划,查看需求5修改后的计划ID
|
||||
Reference in New Issue
Block a user