diff --git a/module/action/model.php b/module/action/model.php index d084732e27..85bf65ea18 100755 --- a/module/action/model.php +++ b/module/action/model.php @@ -346,7 +346,11 @@ class actionModel extends model { $linkedProducts = $this->dao->select('id,name')->from(TABLE_PRODUCT)->where('id')->in($action->extra)->fetchPairs('id', 'name'); $action->extra = ''; - if($linkedProducts) $action->extra = sprintf($this->lang->project->action->extra, '' . join(', ', $linkedProducts) . ''); + if($linkedProducts) + { + foreach($linkedProducts as $productID => $productName) $linkedProducts[$productID] = html::a(helper::createLink('product', 'browse', "productID=$productID"), "#{$productID} {$productName}"); + $action->extra = sprintf($this->lang->project->action->extra, '' . join(', ', $linkedProducts) . ''); + } } $action->history = isset($histories[$actionID]) ? $histories[$actionID] : array();