Merge branch 'sprint/220_liumengyi_fixbug' into 'master'

* Fix bug for dynamic view.

See merge request easycorp/zentaopms!4672
This commit is contained in:
孙广明
2022-07-27 01:31:21 +00:00
+2 -2
View File
@@ -1558,8 +1558,8 @@ class actionModel extends model
}
elseif($action->objectType == 'team')
{
if($action->project) $action->objectLink = helper::createLink('project', 'team', 'projectID=' . $action->project);
if($action->execution) $action->objectLink = helper::createLink('execution', 'team', 'executionID=' . $action->execution);
if($action->project) $action->objectLink = common::hasPriv('project', 'team') ? helper::createLink('project', 'team', 'projectID=' . $action->project) : '';
if($action->execution) $action->objectLink = common::hasPriv('execution', 'team') ? helper::createLink('execution', 'team', 'executionID=' . $action->execution) : '';
}
if($action->objectType == 'stakeholder' and $action->project == 0) $action->objectLink = '';