This commit is contained in:
tianshujie
2022-03-25 10:39:09 +08:00
parent a3b55806f5
commit e36fdcb004
+11 -1
View File
@@ -356,7 +356,17 @@ class actionModel extends model
$execution = $this->dao->select('name,type')->from(TABLE_PROJECT)->where('id')->eq($action->extra)->fetch();
$name = $execution->name;
$method = $execution->type == 'kanban' ? 'kanban' : 'view';
if($name) $action->extra = common::hasPriv('execution', $method) ? html::a(helper::createLink('execution', $method, "executionID=$action->execution"), $name) : $name;
if($name)
{
if($method == 'kanban' and isonlybody())
{
$action->extra = $name;
}
else
{
$action->extra = common::hasPriv('execution', $method) ? html::a(helper::createLink('execution', $method, "executionID=$action->execution"), $name) : $name;
}
}
}
elseif($actionName == 'linked2project')
{