+ add link of story.

This commit is contained in:
wangchunsheng
2009-11-13 08:27:39 +00:00
parent 631627f0bb
commit e96be7d340
2 changed files with 6 additions and 1 deletions
+1
View File
@@ -54,6 +54,7 @@ class testcaseModel extends model
{
$case = $this->dao->findById($caseID)->from(TABLE_CASE)->fetch();
foreach($case as $key => $value) if(strpos($key, 'Date') !== false and !(int)substr($value, 0, 4)) $case->$key = '';
if($case->story) $case->storyTitle = $this->dao->findById($case->story)->from(TABLE_STORY)->fetch('title');
return $case;
}