From dfa64599e2c4169da590fbd6f26c982e851ecb71 Mon Sep 17 00:00:00 2001 From: chenfeiCF Date: Wed, 30 Dec 2015 15:55:33 +0800 Subject: [PATCH] * fix a bug for action module. --- 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 0edbdf236d..2a08280265 100755 --- a/module/action/model.php +++ b/module/action/model.php @@ -241,8 +241,8 @@ class actionModel extends model } elseif($actionName == 'unlinkedfromproject') { - $name = $this->dao->select('name')->from(TABLE_PRODUCT)->where('id')->eq($action->extra)->fetch('name'); - if($name) $action->extra = html::a(helper::createLink('product', 'browse', "productID=$action->extra"), "#$action->extra " . $name); + $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"), "#$action->extra " . $name); } elseif($actionName == 'unlinkedfromplan') {