From 5ecaea9500b8bc7e7fb28efdbe0f87397bdca19b Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Thu, 30 Jun 2011 08:02:12 +0000 Subject: [PATCH] * when get stats, get products which status is empty also. --- module/product/model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/product/model.php b/module/product/model.php index 9a5d81afd7..4c7e02e970 100644 --- a/module/product/model.php +++ b/module/product/model.php @@ -291,13 +291,13 @@ class productModel extends model $this->loadModel('report'); $this->loadModel('story'); - $products = $this->getList('normal'); + $products = $this->getList(',normal'); $i = 1; foreach($products as $key => $product) { if($this->checkPriv($product)) { - if($i <= $counts) + if($i <= $counts and $product->status == 'normal') { $this->session->set('storyReport', "product = '{$product->id}' AND deleted = '0'"); $dataXML = $this->report->createSingleXML($this->story->getDataOfStorysPerStatus($product->id), $this->lang->story->report->options->graph);