From b960ce839add52ce3afda573f9dd0aa198eb1419 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sat, 7 Aug 2021 23:31:21 +1000 Subject: [PATCH] remove debug statement --- InvenTree/templates/js/translated/forms.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/InvenTree/templates/js/translated/forms.js b/InvenTree/templates/js/translated/forms.js index 9ca0ddccec..8f8ea71d54 100644 --- a/InvenTree/templates/js/translated/forms.js +++ b/InvenTree/templates/js/translated/forms.js @@ -1013,12 +1013,12 @@ function addSecondaryModal(field, fields, options) { // Determine the API query URL var url = secondary.api_url || field.api_url; - // Extract form values at time of button press - var data = extractFormData(fields, options) - // If the "fields" attribute is a function, call it with data if (secondary.fields instanceof Function) { - console.log("Fields is a function!"); + + // Extract form values at time of button press + var data = extractFormData(fields, options) + secondary.fields = secondary.fields(data); }