Bugzilla – Attachment 26183 Details for
Bug 11832
JavaScript error on staff client place hold screen if record has no items
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11832 - JavaScript error on staff client place hold screen if record has no items
Bug-11832---JavaScript-error-on-staff-client-place.patch (text/plain), 1.85 KB, created by
Marcel de Rooy
on 2014-03-12 14:35:57 UTC
(
hide
)
Description:
Bug 11832 - JavaScript error on staff client place hold screen if record has no items
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2014-03-12 14:35:57 UTC
Size:
1.85 KB
patch
obsolete
>From 96b55a7a4acb41f9da24e9c4fceb9e0be321a3d2 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 24 Feb 2014 11:35:52 -0500 >Subject: [PATCH] Bug 11832 - JavaScript error on staff client place hold > screen if record has no items >Content-Type: text/plain; charset=utf-8 > >If a hold operation is blocked because the title has no items attached >the patron search autocomplete JavaScript triggers an error. This patch >modifies the template so that the JS is loaded only when items are >present. > >To test, find a title which has no items attached. View the holds page >for that title. There should be no JavaScript error. Patron search >autocomplete should still work correctly for titles which have items >attached. > >Deleted all items from a biblio record. Clicked the holds tab and >confirmed using firebug Javascript error occurs. Applied patch, >confirmed that the Javascript error described in comment 1 no >longer happens. Went to another biblio with items, and confirmed >patron auto-complete still functions. > >Signed-off-by: Mark Tompsett <mtompset@hotmail.com> >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > .../prog/en/modules/reserve/request.tt | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >index b084e25..1092166 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >@@ -131,7 +131,7 @@ function checkMultiHold() { > > $('#hold-request-form').preventDoubleFormSubmit(); > >-[% UNLESS ( borrowernumber || borrower_list ) %] >+[% UNLESS ( borrowernumber || borrower_list || noitems ) %] > [% IF ( CircAutocompl ) %] > $( "#patron" ).autocomplete({ > source: "/cgi-bin/koha/circ/ysearch.pl", >-- >1.7.7.6
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 11832
:
25590
|
25719
| 26183