#10899 fix custom fields server error

This commit is contained in:
Jonathan 2023-04-20 12:25:37 +02:00
parent d501e49f4c
commit fcde5e4452

View File

@ -7701,7 +7701,7 @@ function ui_get_inventory_module_add_form(
} }
function add_row_for_custom_field (fieldName, isSecure) { 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") $("#inventory-module-form-hidden-custom-field-row")
.clone() .clone()
.prop("id", "inventory-module-form-custom-field-row-" + custom_fields_num) .prop("id", "inventory-module-form-custom-field-row-" + custom_fields_num)