Finish task #45106.

This commit is contained in:
zhouxin
2021-11-30 04:27:11 +00:00
parent d46892bb32
commit 2fa0124ed8
2 changed files with 7 additions and 9 deletions
+6 -1
View File
@@ -812,7 +812,7 @@ class actionModel extends model
if(!$actions) return array();
$this->loadModel('common')->saveQueryCondition($this->dao->get(), 'action');
return $this->transformActions($actions);;
return $this->transformActions($actions);
}
/**
@@ -1215,6 +1215,11 @@ class actionModel extends model
if($action->objectType == 'stakeholder' and $action->project == 0) $action->objectLink = '';
if($action->objectType == 'story' and $action->action == 'import2storylib')
{
$action->objectLink = helper::createLink('assetlib', 'storyView', "storyID=$action->objectID");
}
return $action;
}
+1 -8
View File
@@ -70,14 +70,7 @@
}
else
{
if($action->objectType == 'story' and $action->action == 'import2storylib')
{
echo html::a(helper::createLink('assetlib', 'storyView', "storyID=$action->objectID"), $action->objectName, '', $tab);
}
else
{
echo html::a($action->objectLink, $action->objectName, '', $tab);
}
echo html::a($action->objectLink, $action->objectName, '', $tab);
}
?>
<span class="label label-id"><?php echo $action->objectID;?></span>