Merge pull request #19030 from atm-florianm/FIX_14.0_civility_field_with_in_private_thirdparty_creation_form

FIX 14.0 - civility field of private third party creation form has inadequate width
This commit is contained in:
Laurent Destailleur 2021-10-20 11:30:55 +02:00 committed by GitHub
commit 136807645d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1151,6 +1151,10 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
$("#typent_id").change();
$("#effectif_id").val(id_ef15);
$("#effectif_id").change();
/* Force to recompute the width of a select2 field when it was hidden and then shown programatically */
if ($("#civility_id").data("select2")) {
$("#civility_id").select2({width: "resolve"});
}
$("#TypeName").html(document.formsoc.LastName.value);
document.formsoc.private.value=1;
});