From aa72fd9fe59d68217e92c33529903bf4b2595425 Mon Sep 17 00:00:00 2001 From: yfl <554665488@qq.com> Date: Fri, 19 Oct 2018 09:15:21 +0800 Subject: [PATCH 1/2] * solve bug #1462 --- module/bug/control.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/bug/control.php b/module/bug/control.php index d337da3ca3..daf35640e0 100644 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -1542,7 +1542,8 @@ class bug extends control $bug->closedDate = substr($bug->closedDate, 0, 10); $bug->resolvedDate = substr($bug->resolvedDate, 0, 10); $bug->lastEditedDate = substr($bug->lastEditedDate, 0, 10); - + $bug->title = htmlspecialchars_decode($bug->title,ENT_QUOTES); + if($bug->linkBug) { $tmpLinkBugs = array(); From 537f484576db7354b9eeb0ea0d7996c98bcd1626 Mon Sep 17 00:00:00 2001 From: yfl <554665488@qq.com> Date: Wed, 31 Oct 2018 16:38:34 +0800 Subject: [PATCH 2/2] * add title --- module/bug/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/bug/control.php b/module/bug/control.php index daf35640e0..47a8720a61 100644 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -141,7 +141,7 @@ class bug extends control /* Set view. */ $this->view->title = $this->products[$productID] . $this->lang->colon . $this->lang->bug->common; - $this->view->position[] = html::a($this->createLink('bug', 'browse', "productID=$productID"), $this->products[$productID]); + $this->view->position[] = html::a($this->createLink('bug', 'browse', "productID=$productID"), $this->products[$productID],'','title=' . $this->products[$productID]); $this->view->position[] = $this->lang->bug->common; $this->view->productID = $productID; $this->view->product = $this->product->getById($productID);