From 63095a5bf4f86e9d78b0822c971cf40810d0b3fd Mon Sep 17 00:00:00 2001 From: "chencongzhi520@gmail.com" Date: Sat, 29 Oct 2011 09:53:57 +0000 Subject: [PATCH] + fix bug#264 --- module/bug/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/bug/model.php b/module/bug/model.php index c537a86099..511501a5cc 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -381,7 +381,7 @@ class bugModel extends model $result = $this->dao->findById($resultID)->from(TABLE_TESTRESULT)->fetch(); if($caseID > 0) - $run->case = $this->loadModel('testcase')->getById($caseID, $version); + $run->case = $this->loadModel('testcase')->getById($caseID, $result->version); else $run = $this->loadModel('testtask')->getRunById($result->run); if($result and $result->caseResult == 'fail')