diff --git a/htdocs/product/card.php b/htdocs/product/card.php
index 5644e41df1c..914ef4c7d8e 100644
--- a/htdocs/product/card.php
+++ b/htdocs/product/card.php
@@ -1421,7 +1421,7 @@ else
// Status (to sell)
print '
| '.$langs->trans("Status").' ('.$langs->trans("Sell").') | ';
if (! empty($conf->use_javascript_ajax) && $user->rights->produit->creer) {
- print ajax_productonoff($object->id, 'status');
+ print ajax_productonoff($object, 'status');
} else {
print $object->getLibStatut(2,0);
}
@@ -1430,7 +1430,7 @@ else
// Status (to buy)
print ' |
| '.$langs->trans("Status").' ('.$langs->trans("Buy").') | ';
if (! empty($conf->use_javascript_ajax) && $user->rights->produit->creer) {
- print ajax_productonoff($object->id, 'status_buy');
+ print ajax_productonoff($object, 'status_buy');
} else {
print $object->getLibStatut(2,1);
}
|