[-] BO: Fix #PSCFV-7838 deleted taxes should not appears on the listing

This commit is contained in:
Rémi Gaillard
2013-02-20 17:34:32 +01:00
parent c70f080fb2
commit a3de006c5a
2 changed files with 3 additions and 1 deletions
@@ -355,7 +355,7 @@ class AdminProductsControllerCore extends AdminController
protected function loadObject($opt = false) protected function loadObject($opt = false)
{ {
$result = parent::loadObject($opt); $result = parent::loadObject($opt);
if ($result && Validate::isLoadedObjec($this->object)) if ($result && Validate::isLoadedObject($this->object))
$this->object->loadStockData(); $this->object->loadStockData();
return $result; return $result;
} }
@@ -103,6 +103,8 @@ class AdminTaxesControllerCore extends AdminController
); );
parent::__construct(); parent::__construct();
$this->_where .= ' AND a.deleted = 0';
} }
/** /**