From 0e7472dabcfe8230d89bd7eea3a1165b0c5ea2d5 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sat, 13 Apr 2019 21:20:02 +1000 Subject: [PATCH] Fix display of custom button text - Missing first parameter (modal object) to function call --- InvenTree/static/script/inventree/modals.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/static/script/inventree/modals.js b/InvenTree/static/script/inventree/modals.js index 80683fe9f8..72f51d9d5a 100644 --- a/InvenTree/static/script/inventree/modals.js +++ b/InvenTree/static/script/inventree/modals.js @@ -257,7 +257,7 @@ function launchModalForm(url, options = {}) { } if (response.submit_label) { - modalSetButtonText(response.submit_label); + modalSetButtonText(modal, String(response.submit_label)); } if (response.html_form) {