Bugzilla – Attachment 42258 Details for
Bug 12525
Patron Lists aren't added to list pulldown when created from Patron search
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12525: Prevent adding several patron lists with the same name
Bug-12525-Prevent-adding-several-patron-lists-with.patch (text/plain), 2.26 KB, created by
Chris Cormack
on 2015-09-03 03:03:04 UTC
(
hide
)
Description:
Bug 12525: Prevent adding several patron lists with the same name
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2015-09-03 03:03:04 UTC
Size:
2.26 KB
patch
obsolete
>From a866b29740ec0d4ca5d07ebf4abf44cd65e68b1b Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 15 Jul 2015 11:50:18 +0100 >Subject: [PATCH] Bug 12525: Prevent adding several patron lists with the same > name > >If you add patron to a patron list, from the patron search result, a >list is created when you click on "Save". >The list is considered as new each time. > >To reproduce: >1/ Launch a patron search >2/ Select 1 patron, and create a new list 'aaa' >3/ Select another patron and click Save again >2 lists are created > >Test plan: >1/ Launch a patron search >2/ Select 1 patron, and create a new list 'aaa' >The dropdown list should be populated with this new list, and should be >selected >3/ Select another patron and click Save again >Only 1 list should be created > >Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt | 10 ++++++++++ > 1 file changed, 10 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt >index aac6657..877be25 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt >@@ -76,6 +76,16 @@ $(document).ready(function() { > $("#patron_list_dialog > span.patrons-length").html(data.patrons_added_to_list); > $("#patron_list_dialog > a").attr("href", "/cgi-bin/koha/patron_lists/list.pl?patron_list_id=" + data.patron_list.patron_list_id); > $("#patron_list_dialog > a").html(data.patron_list.name); >+ if ( $('#add_to_patron_list').val() == 'new' ) { >+ var new_patron_list_added = $("<option>", { >+ value: data.patron_list.patron_list_id, >+ text: data.patron_list.name >+ }); >+ $("#add_to_patron_list optgroup").append(new_patron_list_added); >+ $("#add_to_patron_list").val(data.patron_list.patron_list_id); >+ $("#new_patron_list").val(''); >+ $('#add_to_patron_list').change(); >+ } > }, > error: function() { > alert("an error occurred"); >-- >2.5.1
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 12525
:
41007
|
41008
|
41084
|
41085
|
42193
|
42257
|
42258
|
42370
|
42371