From 3d17388b48e30e551766a77fd09a93619bd74026 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 17 Jun 2021 19:22:00 +0200 Subject: [PATCH] set modal title with response --- InvenTree/templates/js/modals.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/InvenTree/templates/js/modals.js b/InvenTree/templates/js/modals.js index 3ff20a9e5f..a55a62746c 100644 --- a/InvenTree/templates/js/modals.js +++ b/InvenTree/templates/js/modals.js @@ -792,6 +792,11 @@ function handleModalForm(url, options) { if (options.secondary) { attachSecondaries(modal, options.secondary); } + + // Set modal title with response + if (response.title) { + modalSetTitle(modal, response.title); + } } else { $(modal).modal('hide');