* code for task#2171.

This commit is contained in:
xia0ta0
2014-12-10 17:39:41 +08:00
parent 0d0e5e387c
commit df54dbdde6
2 changed files with 8 additions and 2 deletions
+4
View File
@@ -40,6 +40,10 @@ class product extends control
*
* @param string $locate locate to browse page or not. If not, display all products.
* @param int $productID
* @param string $orderBy
* @param int $recTotal
* @param int $recPerPage
* @param int $pageID
* @access public
* @return void
*/
+4 -2
View File
@@ -463,10 +463,12 @@ class productModel extends model
/**
* Get product stats.
*
* @param string $orderBy
* @param int $pager
* @access public
* @return array
* @return array
*/
public function getStats($orderBy = 'code asc', $pager = null)
public function getStats($orderBy = 'code_asc', $pager = null)
{
$this->loadModel('report');
$this->loadModel('story');