Bugzilla – Attachment 75609 Details for
Bug 20827
Can't add owner to a fund
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20827: Display Fund's owner name when selected
Bug-20827-Display-Funds-owner-name-when-selected.patch (text/plain), 1.93 KB, created by
Katrin Fischer
on 2018-05-28 20:13:03 UTC
(
hide
)
Description:
Bug 20827: Display Fund's owner name when selected
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2018-05-28 20:13:03 UTC
Size:
1.93 KB
patch
obsolete
>From c643b02b3b614b5f564c404004f8c9de61ec190c Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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 <mtompset@hotmail.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > 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 25d3d8e..dd72013 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 %] > </a> | > </span> >+ [% ELSE %] >+ <span id="budget_owner_name"></span> > [% END %] > <a id="edit_owner" class="new_window" href="#"><i class="fa fa-search"></i> Select owner</a> > <a id="remove_owner" href="#"><i class="fa fa-trash"></i> Remove owner</a> >@@ -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 = '<a href="/cgi-bin/koha/members/moremember.pl' > + '?borrowernumber=' + borrowernumber + '">' >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 20827
:
75593
|
75601
| 75609