* fix a bug for action module.

This commit is contained in:
chenfeiCF
2015-12-30 15:55:33 +08:00
parent 888c89fbe5
commit dfa64599e2

View File

@@ -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')
{