Improvements to traffic collection, zero record ignore, some fixes to order_by

This commit is contained in:
Deon George
2013-10-14 11:26:08 +11:00
parent 335e8e65bd
commit c347032497
6 changed files with 94 additions and 4 deletions

View File

@@ -156,7 +156,7 @@ $(document).ready(function() {
* Show a list of products
*/
public function action_list() {
$products = ($x=$this->request->param('id')) ? ORM::factory('Product_Category',$x)->products() : ORM::factory('Product')->order_by('status DESC,prod_plugin_file')->find_all();
$products = ($x=$this->request->param('id')) ? ORM::factory('Product_Category',$x)->products() : ORM::factory('Product')->order_by('status','DESC')->order_by('prod_plugin_file')->find_all();
Block::factory()
->title(_('Products'))