From b344b81e24b63e4451c49909436a98cfcc71a622 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 Signed-off-by: Martin Renvoize (cherry picked from commit dc396756a050bf3fe07bb3141df6535a27fd9afb) Signed-off-by: Fridolin Somers --- 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 170ac31691..36374137c4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt @@ -35,7 +35,7 @@ var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget") function select_user(borrowernumber, borrower) { ownerRemove(); - var borrowername = borrower.firstname + ' ' + borrower.surname + var borrowername = borrower.firstname + ' ' + borrower.surname; if (borrowernumber) { var ownerlink = '' @@ -508,6 +508,8 @@ var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget") [% budget_owner_name %] | + [% ELSE %] + [% END %] Select owner Remove owner -- 2.39.5