Update html.formaccounting.class.php

This commit is contained in:
Laurent Destailleur 2022-02-28 21:53:05 +01:00 committed by GitHub
parent 722b1de2b7
commit 50602b1fbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -506,7 +506,7 @@ class FormAccounting extends Form
// Build select
$out .= Form::selectarray($htmlname, $aux_account, $selectid, ($showempty ? (is_numeric($showempty) ? 1 : $showempty): 0), 0, 0, '', 0, 0, 0, '', $morecss, 1);
//automatic filling if we give the name of the subledger_label input
if (!empty($labelhtmlname)) {
if (!empty($conf->use_javascript_ajax)) {
$out .= '<script>
jQuery(document).ready(() => {
$("#'.$htmlname.'").on("select2:select", function(e) {