Bugzilla – Attachment 71915 Details for
Bug 20148
Don't allow adding same user multiple times to a basket or an order
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20148: Prevent adding same user multiple times to an order
Bug-20148-Prevent-adding-same-user-multiple-times-.patch (text/plain), 1.12 KB, created by
Jonathan Druart
on 2018-02-18 18:11:15 UTC
(
hide
)
Description:
Bug 20148: Prevent adding same user multiple times to an order
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-02-18 18:11:15 UTC
Size:
1.12 KB
patch
obsolete
>From 4c6a007dfc83eff93768ae385ffd264bf56f2843 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Sun, 18 Feb 2018 15:10:30 -0300 >Subject: [PATCH] Bug 20148: Prevent adding same user multiple times to an > order > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt >index a71e35549f..3bad339e0b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt >@@ -177,7 +177,7 @@ $(document).ready(function() > } else { > ids = new Array; > } >- if (ids.indexOf(borrowernumber) < 0) { >+ if (ids.indexOf(borrowernumber.toString()) < 0) { > ids.push(borrowernumber); > $("#users_ids").val(ids.join(':')); > var li = '<li id="user_'+borrowernumber+'">'+borrowername >-- >2.11.0
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 20148
:
71273
|
71862
|
71863
|
71898
|
71899
| 71915