From 6773a5e3006de18d4b9eb94697abb7fccafe08c3 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 28 May 2018 11:40:20 -0300 Subject: [PATCH] Bug 20827: Display Fund's owner name when selected When a fund is created or edited and does not have a owner yet, the name of the patron will not be displayed when selected. The HTML element the JS code expects is not present in the DOM. Test plan: - Create a fund, set a owner - remove the owner, edit, etc. - Save - Edit again Make sure it works as expected. Signed-off-by: Mark Tompsett Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens --- koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt index 25d3d8ebd3..dd72013375 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt @@ -255,6 +255,8 @@ [% budget_owner.firstname %] [% budget_owner.surname %] | + [% ELSE %] + [% END %] Select owner Remove owner @@ -471,7 +473,7 @@ function select_user(borrowernumber, borrower) { ownerRemove(); - var borrowername = borrower.firstname + ' ' + borrower.surname + var borrowername = borrower.firstname + ' ' + borrower.surname; if (borrowernumber) { var ownerlink = '' -- 2.39.5