diff --git a/htdocs/comm/card.php b/htdocs/comm/card.php
index a0263065dee..062d1658821 100644
--- a/htdocs/comm/card.php
+++ b/htdocs/comm/card.php
@@ -491,7 +491,7 @@ if ($object->id > 0)
$langs->load("categories");
print '
| ' . $langs->trans("CustomersCategoriesShort") . ' | ';
print '';
- print $form->showCategories($object->id, 'customer', 1);
+ print $form->showCategories($object->id, Categorie::TYPE_CUSTOMER, 1);
print " |
";
}
diff --git a/htdocs/compta/bank/card.php b/htdocs/compta/bank/card.php
index 980cf6bd8f2..9f5707402a6 100644
--- a/htdocs/compta/bank/card.php
+++ b/htdocs/compta/bank/card.php
@@ -689,7 +689,7 @@ else
// Categories
if ($conf->categorie->enabled) {
print '| '.$langs->trans("Categories").' | ';
- print $form->showCategories($object->id, 'bank_account', 1);
+ print $form->showCategories($object->id, Categorie::TYPE_ACCOUNT, 1);
print " |
";
}
diff --git a/htdocs/contact/card.php b/htdocs/contact/card.php
index f72edeb3a34..563f9906f16 100644
--- a/htdocs/contact/card.php
+++ b/htdocs/contact/card.php
@@ -1355,7 +1355,7 @@ else
if (! empty($conf->categorie->enabled) && ! empty($user->rights->categorie->lire)) {
print '| ' . $langs->trans("Categories") . ' | ';
print '';
- print $form->showCategories($object->id, 'contact', 1);
+ print $form->showCategories($object->id, Categorie::TYPE_CONTACT, 1);
print ' |
';
}
diff --git a/htdocs/fourn/card.php b/htdocs/fourn/card.php
index f52f5b089fd..32f6a9ad11b 100644
--- a/htdocs/fourn/card.php
+++ b/htdocs/fourn/card.php
@@ -312,7 +312,7 @@ if ($object->id > 0)
$langs->load("categories");
print '| ' . $langs->trans("SuppliersCategoriesShort") . ' | ';
print '';
- print $form->showCategories($object->id, 'supplier', 1);
+ print $form->showCategories($object->id, Categorie::TYPE_SUPPLIER, 1);
print " |
";
}
diff --git a/htdocs/product/card.php b/htdocs/product/card.php
index a5793cc66c8..32eb5c4b383 100644
--- a/htdocs/product/card.php
+++ b/htdocs/product/card.php
@@ -1982,7 +1982,7 @@ else
// Categories
if ($conf->categorie->enabled) {
print '| '.$langs->trans("Categories").' | ';
- print $form->showCategories($object->id, 'product', 1);
+ print $form->showCategories($object->id, Categorie::TYPE_PRODUCT, 1);
print " |
";
}
diff --git a/htdocs/product/stock/card.php b/htdocs/product/stock/card.php
index 41e91b04d0c..2a69ae58ae8 100644
--- a/htdocs/product/stock/card.php
+++ b/htdocs/product/stock/card.php
@@ -454,7 +454,7 @@ else
// Categories
if($conf->categorie->enabled) {
print '| '.$langs->trans("Categories").' | ';
- print $form->showCategories($object->id, 'warehouse', 1);
+ print $form->showCategories($object->id, Categorie::TYPE_WAREHOUSE, 1);
print " |
";
}
print "";
diff --git a/htdocs/projet/card.php b/htdocs/projet/card.php
index 51af2f2b14d..16f1dd7e439 100644
--- a/htdocs/projet/card.php
+++ b/htdocs/projet/card.php
@@ -1069,7 +1069,7 @@ elseif ($object->id > 0)
// Categories
if($conf->categorie->enabled) {
print '| '.$langs->trans("Categories").' | ';
- print $form->showCategories($object->id, 'project', 1);
+ print $form->showCategories($object->id, Categorie::TYPE_PROJECT, 1);
print " |
";
}
diff --git a/htdocs/projet/comment.php b/htdocs/projet/comment.php
index a7478163f47..4c9c4ca3ad3 100644
--- a/htdocs/projet/comment.php
+++ b/htdocs/projet/comment.php
@@ -160,7 +160,7 @@ print '';
// Categories
if ($conf->categorie->enabled) {
print '| ' . $langs->trans("Categories") . ' | ';
- print $form->showCategories($object->id, 'project', 1);
+ print $form->showCategories($object->id, Categorie::TYPE_PROJECT, 1);
print " |
";
}
diff --git a/htdocs/projet/contact.php b/htdocs/projet/contact.php
index 82eb598190b..f8ccdbf7210 100644
--- a/htdocs/projet/contact.php
+++ b/htdocs/projet/contact.php
@@ -279,7 +279,7 @@ if ($id > 0 || ! empty($ref))
// Categories
if ($conf->categorie->enabled) {
print '| '.$langs->trans("Categories").' | ';
- print $form->showCategories($object->id, 'project', 1);
+ print $form->showCategories($object->id, Categorie::TYPE_PROJECT, 1);
print " |
";
}
diff --git a/htdocs/projet/element.php b/htdocs/projet/element.php
index 56d01faa342..1e3661516fb 100644
--- a/htdocs/projet/element.php
+++ b/htdocs/projet/element.php
@@ -255,7 +255,7 @@ if (empty($conf->global->PROJECT_HIDE_TASKS) && ! empty($conf->global->PROJECT_B
// Categories
if($conf->categorie->enabled) {
print '| '.$langs->trans("Categories").' | ';
- print $form->showCategories($object->id, 'project', 1);
+ print $form->showCategories($object->id, Categorie::TYPE_PROJECT, 1);
print " |
";
}
diff --git a/htdocs/projet/ganttview.php b/htdocs/projet/ganttview.php
index 725d99fb673..42f79ae0f30 100644
--- a/htdocs/projet/ganttview.php
+++ b/htdocs/projet/ganttview.php
@@ -212,7 +212,7 @@ if (($id > 0 && is_numeric($id)) || ! empty($ref))
// Categories
if($conf->categorie->enabled) {
print '| '.$langs->trans("Categories").' | ';
- print $form->showCategories($object->id, 'project', 1);
+ print $form->showCategories($object->id, Categorie::TYPE_PROJECT, 1);
print " |
";
}
diff --git a/htdocs/projet/tasks.php b/htdocs/projet/tasks.php
index 9d9b8e69516..0775d5996b2 100644
--- a/htdocs/projet/tasks.php
+++ b/htdocs/projet/tasks.php
@@ -487,7 +487,7 @@ if ($id > 0 || !empty($ref))
// Categories
if ($conf->categorie->enabled) {
print '| '.$langs->trans("Categories").' | ';
- print $form->showCategories($object->id, 'project', 1);
+ print $form->showCategories($object->id, Categorie::TYPE_PROJECT, 1);
print " |
";
}
diff --git a/htdocs/societe/card.php b/htdocs/societe/card.php
index 6b375679052..e8182f9c846 100644
--- a/htdocs/societe/card.php
+++ b/htdocs/societe/card.php
@@ -2550,7 +2550,7 @@ else
if ($object->prospect || $object->client || (! $object->fournisseur && ! empty($conf->global->THIRDPARTY_CAN_HAVE_CATEGORY_EVEN_IF_NOT_CUSTOMER_PROSPECT_SUPPLIER))) {
print '| ' . $langs->trans("CustomersCategoriesShort") . ' | ';
print '';
- print $form->showCategories($object->id, 'customer', 1);
+ print $form->showCategories($object->id, Categorie::TYPE_CUSTOMER, 1);
print " |
";
}
@@ -2558,7 +2558,7 @@ else
if ($object->fournisseur) {
print '| ' . $langs->trans("SuppliersCategoriesShort") . ' | ';
print '';
- print $form->showCategories($object->id, 'supplier', 1);
+ print $form->showCategories($object->id, Categorie::TYPE_SUPPLIER, 1);
print " |
";
}
}
diff --git a/htdocs/user/card.php b/htdocs/user/card.php
index 7886c0ef728..d75d6abbc57 100644
--- a/htdocs/user/card.php
+++ b/htdocs/user/card.php
@@ -1764,7 +1764,7 @@ else
{
print '| '.$langs->trans("Categories").' | ';
print '';
- print $form->showCategories($object->id, 'user', 1);
+ print $form->showCategories($object->id, Categorie::TYPE_USER, 1);
print ' |
';
}
@@ -2626,7 +2626,7 @@ else
{
print $form->multiselectarray('usercats', $cate_arbo, $arrayselected, '', 0, '', 0, '90%');
} else {
- print $form->showCategories($object->id, 'user', 1);
+ print $form->showCategories($object->id, Categorie::TYPE_USER, 1);
}
print "";
}