Merge pull request #19668 from ATM-Consulting/FIX_ContactCategorie_Double_Display_On_Societe_Create_Card_With_THIRDPARTY_SUGGEST_ALSO_ADDRESS_CREATION

FIX : double display for contact categorie on societe create card
This commit is contained in:
Laurent Destailleur 2021-12-21 15:53:53 +01:00 committed by GitHub
commit 82bab7bcac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1621,13 +1621,6 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
print "</td></tr>";
}
if (!empty($conf->global->THIRDPARTY_SUGGEST_ALSO_ADDRESS_CREATION)) {
print '<tr class="individualline"><td class="toptd">'.$form->editfieldkey('ContactCategoriesShort', 'contcats', '', $object, 0).'</td><td colspan="3">';
$cate_arbo = $form->select_all_categories(Categorie::TYPE_CONTACT, null, 'parent', null, null, 1);
print img_picto('', 'category').$form->multiselectarray('contcats', $cate_arbo, GETPOST('contcats', 'array'), null, null, 'quatrevingtpercent widthcentpercentminusx', 0, 0);
print "</td></tr>";
}
// Supplier
if ((!empty($conf->fournisseur->enabled) && empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)) || !empty($conf->supplier_order->enabled) || !empty($conf->supplier_invoice->enabled)) {
print '<tr class="visibleifsupplier"><td class="toptd">'.$form->editfieldkey('SuppliersCategoriesShort', 'suppcats', '', $object, 0).'</td><td colspan="3">';