From 5498800ad607a162d8c15476a8032622a2ee6f32 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 13 Nov 2020 10:02:34 +0100 Subject: [PATCH] Update commonobject.class.php --- htdocs/core/class/commonobject.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index d8b5a9eff7a..221c69b659a 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -6995,12 +6995,12 @@ abstract class CommonObject jQuery("select option[parent]").parent().each(function() { var orig_select = {}; var child_list = $(this).attr("name"); - orig_select [child_list] = $(this).clone(); + orig_select[child_list] = $(this).clone(); var parent = $(this).find("option[parent]:first").attr("parent"); var infos = parent.split(":"); var parent_list = infos[0]; $("select[name=\""+parent_list+"\"]").change(function() { - showOptions(child_list, parent_list, orig_select [child_list]); + showOptions(child_list, parent_list, orig_select[child_list]); }); }); }