Bugzilla – Attachment 69729 Details for
Bug 19706
Item search: Unsupported format html
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19706 - Fix bad json formed when there are no CCODE values
Bug-19706---Fix-bad-json-formed-when-there-are-no-.patch (text/plain), 1.55 KB, created by
Nick Clemens (kidclamp)
on 2017-12-12 11:18:38 UTC
(
hide
)
Description:
Bug 19706 - Fix bad json formed when there are no CCODE values
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2017-12-12 11:18:38 UTC
Size:
1.55 KB
patch
obsolete
>From cd0d80e8adbe005791e90fc321fb8a1d2865dee1 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Tue, 12 Dec 2017 11:15:34 +0000 >Subject: [PATCH] Bug 19706 - Fix bad json formed when there are no CCODE > values > >To test: >1 - Delete all ccode values in your system >2 - Load the item search page >3 - View the console and note a js error >4 - Try to perform an item search to screen >5 - Internal server error ("unsupported format 'html'" in logs) >6 - Apply patch >7 - Reload page >8 - Note js error is gone >9 - Perform search to screen, success! >--- > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt >index 5e02cc4..44d39d5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt >@@ -363,7 +363,11 @@ > { 'type': 'text' }, > { 'type': 'text' }, > { 'type': 'text' }, >- { 'type': 'select', 'values': [% ccodes.json %] }, >+ [% IF ccode.size %] >+ { 'type': 'select', 'values': [% ccodes.json %] }, >+ [% ELSE %] >+ null, >+ [% END %] > { 'type': 'text' }, > { 'type': 'text' }, > { 'type': 'select', 'values': [% branches.json %] }, >-- >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 19706
:
69729
|
69745
|
69800
|
69831
|
69832
|
69835
|
69836