Update product.php

This commit is contained in:
Frédéric FRANCE 2014-10-18 15:52:37 +02:00
parent 98db599c69
commit 3a49965820

View File

@ -279,7 +279,7 @@ if ($id > 0 || $ref)
// Status (to sell)
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Sell").')</td><td>';
if (! empty($conf->use_javascript_ajax) && $user->rights->produit->creer) {
print ajax_productonoff($product->id, 'status');
print ajax_object_onoff($product, 'status');
} else {
print $product->getLibStatut(2,0);
}
@ -288,7 +288,7 @@ if ($id > 0 || $ref)
// Status (to buy)
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Buy").')</td><td colspan="2">';
if (! empty($conf->use_javascript_ajax) && $user->rights->produit->creer) {
print ajax_productonoff($product->id, 'status_buy');
print ajax_object_onoff($product, 'status_buy');
} else {
print $product->getLibStatut(2,1);
}