* finish task #2185.

This commit is contained in:
wangyidong
2015-01-28 11:16:51 +08:00
parent e67ab008d4
commit 4a9dad22b3
+1 -1
View File
@@ -1366,7 +1366,7 @@ class storyModel extends model
public function getZeroCase($productID, $orderBy = 'id_desc')
{
$allStories = $this->getProductStories($productID, 0, 'all', $orderBy);
$casedStories = $this->dao->select('DISTINCT story')->from(TABLE_CASE)->where('product')->eq($productID)->andWhere('story')->ne(0)->fetchAll('story');
$casedStories = $this->dao->select('DISTINCT story')->from(TABLE_CASE)->where('product')->eq($productID)->andWhere('story')->ne(0)->andWhere('deleted')->eq(0)->fetchAll('story');
foreach($allStories as $key => $story)
{