From fcde5e44523ade619350dfd45499dca3c5cd137a Mon Sep 17 00:00:00 2001 From: Jonathan Date: Thu, 20 Apr 2023 12:25:37 +0200 Subject: [PATCH] #10899 fix custom fields server error --- pandora_console/include/functions_ui.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index d8fa62ffa1..ab37336cb0 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -7701,7 +7701,7 @@ function ui_get_inventory_module_add_form( } function add_row_for_custom_field (fieldName, isSecure) { - var custom_fields_num = $("tr[id^=inventory-module-form-custom-field-row-]").length+1; + var custom_fields_num = $("tr[id^=inventory-module-form-custom-field-row-]").length; $("#inventory-module-form-hidden-custom-field-row") .clone() .prop("id", "inventory-module-form-custom-field-row-" + custom_fields_num)