// Removing some id_warehouse

// Adding some checks with advanced_stock_management product attribute
This commit is contained in:
mDeflotte
2011-12-19 16:01:41 +00:00
parent 93e3cbe89d
commit bab4e9c6e1
10 changed files with 101 additions and 105 deletions
+4 -1
View File
@@ -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;