From 87160bf3a55e87dd9983018545f73757acc22dbb Mon Sep 17 00:00:00 2001 From: tianshujie Date: Tue, 5 Jul 2022 09:53:43 +0800 Subject: [PATCH] * Fix bug #24718. --- module/common/view/customfield.html.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/module/common/view/customfield.html.php b/module/common/view/customfield.html.php index 120d972a1d..2ccfe0b5d9 100644 --- a/module/common/view/customfield.html.php +++ b/module/common/view/customfield.html.php @@ -42,10 +42,8 @@ var fieldList = ',' + showFields + ','; $('#formSettingForm > .checkboxes > .checkbox-primary > input:visible').each(function() { - var field = ',' + $(this).val() + ','; - var checked = fieldList.indexOf(field) >= 0 ? true : false; - - $(this).prop('checked', checked); + var field = ',' + $(this).val() + ','; + $(this).prop('checked', fieldList.indexOf(field) >= 0); }); }