diff --git a/htdocs/societe/card.php b/htdocs/societe/card.php
index 204eff383d5..afec096a500 100644
--- a/htdocs/societe/card.php
+++ b/htdocs/societe/card.php
@@ -1321,7 +1321,7 @@ else
$langs->load('categories');
// Customer
- if ($object->prospect || $object->client) {
+ if ($object->prospect || $object->client || (! $object->fournisseur && ! empty($conf->global->THIRDPARTY_CAN_HAVE_CATEGORY_EVEN_IF_NOT_CUSTOMER_PROSPECT_SUPPLIER))) {
print '
| ' . fieldLabel('CustomersCategoriesShort', 'custcats') . ' | ';
$cate_arbo = $form->select_all_categories(Categorie::TYPE_CUSTOMER, null, 'parent', null, null, 1);
print $form->multiselectarray('custcats', $cate_arbo, GETPOST('custcats', 'array'), null, null, null,
@@ -1879,7 +1879,7 @@ else
if (! empty($conf->categorie->enabled) && ! empty($user->rights->categorie->lire))
{
// Customer
- if ($object->prospect || $object->client) {
+ if ($object->prospect || $object->client || (! $object->fournisseur && ! empty($conf->global->THIRDPARTY_CAN_HAVE_CATEGORY_EVEN_IF_NOT_CUSTOMER_PROSPECT_SUPPLIER))) {
print ' |
| ' . fieldLabel('CustomersCategoriesShort', 'custcats') . ' | ';
print '';
$cate_arbo = $form->select_all_categories(Categorie::TYPE_CUSTOMER, null, null, null, null, 1);
@@ -2269,7 +2269,7 @@ else
if (! empty($conf->categorie->enabled) && ! empty($user->rights->categorie->lire))
{
// Customer
- if ($object->prospect || $object->client) {
+ 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);
|