[-] BO: don't display stock available if stock management is disabled #PSCFV-6029

This commit is contained in:
Rémi Gaillard
2012-12-11 16:59:26 +01:00
parent ef4b3576fc
commit 8d2f5d6e42
5 changed files with 31 additions and 21 deletions
+6 -2
View File
@@ -1122,8 +1122,11 @@ class AdminControllerCore extends Controller
}
public function display()
{
$this->context->smarty->assign('display_header', $this->display_header);
$this->context->smarty->assign('display_footer', $this->display_footer);
$this->context->smarty->assign(array(
'display_header' => $this->display_header,
'display_footer' => $this->display_footer,
)
);
// Use page title from meta_title if it has been set else from the breadcrumbs array
if (!$this->meta_title)
@@ -1702,6 +1705,7 @@ class AdminControllerCore extends Controller
'table' => $this->table,
'current' => self::$currentIndex,
'token' => $this->token,
'stock_management' => (int)Configuration::get('PS_STOCK_MANAGEMENT')
));
if ($this->display_header)