From ea8394ad1050a43d254fcebc8ff53a5729754ef8 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Mon, 29 Apr 2019 15:54:02 +0800 Subject: [PATCH] * finish task #5437. --- module/action/model.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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();