// Removing some id_warehouse
// Adding some checks with advanced_stock_management product attribute git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11375 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -1231,7 +1231,10 @@ class AdminControllerCore extends Controller
|
||||
{
|
||||
if (Tab::checkTabRights($tab['id_tab']) === true)
|
||||
{
|
||||
if ($tab['name'] == 'Stock' && Configuration::get('PS_ADVANCED_STOCK_MANAGEMENT') == 0)
|
||||
if ($tab['name'] == 'Stock'
|
||||
&& Configuration::get('PS_ADVANCED_STOCK_MANAGEMENT') == 0
|
||||
&& (int)$product['advanced_stock_management'] == 1
|
||||
)
|
||||
{
|
||||
unset($tabs[$index]);
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user