From 849d43b4b2f2140a1f110c4630b7f53677032db8 Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Fri, 4 Jun 2021 15:06:02 +0800 Subject: [PATCH] * Fix action bug. --- module/action/model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/action/model.php b/module/action/model.php index 3126dc991c..8348da3934 100755 --- a/module/action/model.php +++ b/module/action/model.php @@ -182,8 +182,6 @@ class actionModel extends model return $relation; } - if($actionType == 'unlinkedfromproject' or $actionType == 'linked2project') $action->project = (int)$extra ; - if($actionType == 'unlinkedfromexecution' or $actionType == 'linked2execution') $action->execution = (int)$extra; /* Only process these object types. */ if(strpos(',story,productplan,release,task,build,bug,case,testtask,testreport,doc,doclib,issue,risk,opportunity,trainplan,gapanalysis,team,whitelist,', ",{$objectType},") !== false) @@ -246,6 +244,8 @@ class actionModel extends model $record->product = join(',', array_keys($products)); } } + if($actionType == 'unlinkedfromproject' or $actionType == 'linked2project') $record->project = (int)$extra ; + if($actionType == 'unlinkedfromexecution' or $actionType == 'linked2execution') $record->execution = (int)$extra; if($record) {