From 6fec0feae6ac92acac0db2a653c2f351fec4cdbd Mon Sep 17 00:00:00 2001 From: xia0ta0 Date: Thu, 11 Dec 2014 16:38:04 +0800 Subject: [PATCH] * code for task#1302. --- module/action/model.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/module/action/model.php b/module/action/model.php index a447008994..57e3e13346 100755 --- a/module/action/model.php +++ b/module/action/model.php @@ -208,6 +208,11 @@ class actionModel extends model { $action->actor = $commiters[$action->actor]; } + elseif($actionName == 'linked2project') + { + $name = $this->dao->select('name')->from(TABLE_PROJECT)->where('id')->eq($action->extra)->fetch('name'); + if($name) $action->extra = html::a(helper::createLink('project', 'story', "projectID=$action->extra"), $name); + } elseif($actionName == 'linked2plan') { $title = $this->dao->select('title')->from(TABLE_PRODUCTPLAN)->where('id')->eq($action->extra)->fetch('title');