// Improved filters

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13886 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
bMancone
2012-03-06 13:35:05 +00:00
parent d42547cd0a
commit 0546f91456
4 changed files with 70 additions and 4 deletions
@@ -450,9 +450,16 @@ class AdminSupplyOrdersControllerCore extends AdminController
$this->_where = ' AND a.is_template = 0';
if ($this->getCurrentWarehouse() != -1)
{
$this->_where .= ' AND a.id_warehouse = '.$this->getCurrentWarehouse();
self::$currentIndex .= '&id_warehouse='.(int)$this->getCurrentWarehouse();
}
if ($this->getFilterStatus() != 0)
{
$this->_where .= ' AND st.enclosed != 1';
self::$currentIndex .= '&filter_status=on';
}
$first_list = parent::renderList();
if (Tools::isSubmit('csv_orders') || Tools::isSubmit('csv_orders_details') || Tools::isSubmit('csv_order_details'))