From 8e1fd877f2d457a11d22d4da86fe527154b4934e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 28 Feb 2022 21:55:30 +0100 Subject: [PATCH] Update html.formaccounting.class.php --- htdocs/core/class/html.formaccounting.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/html.formaccounting.class.php b/htdocs/core/class/html.formaccounting.class.php index f658cb7c39f..9234fa057bd 100644 --- a/htdocs/core/class/html.formaccounting.class.php +++ b/htdocs/core/class/html.formaccounting.class.php @@ -506,13 +506,13 @@ 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($conf->use_javascript_ajax)) { + if (!empty($conf->use_javascript_ajax) && !empty($labelhtmlname)) { $out .= '