Update card.php
This commit is contained in:
parent
eefb211be7
commit
446e73d8b8
@ -1421,7 +1421,7 @@ else
|
||||
// Status (to sell)
|
||||
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Sell").')</td><td colspan="2">';
|
||||
if (! empty($conf->use_javascript_ajax) && $user->rights->produit->creer) {
|
||||
print ajax_object_onoff($object, 'status');
|
||||
print ajax_object_onoff($object, 'status', 'ProductStatusOnSell', 'ProductStatusNotOnSell');
|
||||
} else {
|
||||
print $object->getLibStatut(2,0);
|
||||
}
|
||||
@ -1430,7 +1430,7 @@ else
|
||||
// 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_object_onoff($object, 'status_buy');
|
||||
print ajax_object_onoff($object, 'status_buy', 'ProductStatusOnBuy', 'ProductStatusNotOnBuy');
|
||||
} else {
|
||||
print $object->getLibStatut(2,1);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user