Improvements to traffic collection, zero record ignore, some fixes to order_by
This commit is contained in:
@@ -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'))
|
||||
|
Reference in New Issue
Block a user