Update card.php
This commit is contained in:
parent
96aee6eed4
commit
98db599c69
@ -1421,7 +1421,7 @@ else
|
|||||||
// Status (to sell)
|
// Status (to sell)
|
||||||
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Sell").')</td><td colspan="2">';
|
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Sell").')</td><td colspan="2">';
|
||||||
if (! empty($conf->use_javascript_ajax) && $user->rights->produit->creer) {
|
if (! empty($conf->use_javascript_ajax) && $user->rights->produit->creer) {
|
||||||
print ajax_productonoff($object->id, 'status');
|
print ajax_productonoff($object, 'status');
|
||||||
} else {
|
} else {
|
||||||
print $object->getLibStatut(2,0);
|
print $object->getLibStatut(2,0);
|
||||||
}
|
}
|
||||||
@ -1430,7 +1430,7 @@ else
|
|||||||
// Status (to buy)
|
// Status (to buy)
|
||||||
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Buy").')</td><td colspan="2">';
|
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Buy").')</td><td colspan="2">';
|
||||||
if (! empty($conf->use_javascript_ajax) && $user->rights->produit->creer) {
|
if (! empty($conf->use_javascript_ajax) && $user->rights->produit->creer) {
|
||||||
print ajax_productonoff($object->id, 'status_buy');
|
print ajax_productonoff($object, 'status_buy');
|
||||||
} else {
|
} else {
|
||||||
print $object->getLibStatut(2,1);
|
print $object->getLibStatut(2,1);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user