Update card.php

This commit is contained in:
Laurent Destailleur 2022-03-30 12:15:33 +02:00 committed by GitHub
parent 5a86f99890
commit e93f1cc507
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1000,7 +1000,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
$object->client = 3;
}
}
if (!empty($conf->global->SOCIETE_DISABLE_PROSPECTSCUSTOMERS)) {
if (!empty($conf->global->SOCIETE_DISABLE_PROSPECTSCUSTOMERS) && $object->client == 3) {
$object->client = 1;
}
if (GETPOST("type", 'aZ') == 'p') {