Bugzilla – Attachment 34596 Details for
Bug 13476
Item Search feature gets datatables error and doesn't complete search
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13476: Fix DataTables for the search items form
Bug-13476-Fix-DataTables-for-the-search-items-form.patch (text/plain), 1.91 KB, created by
Mirko Tietgen
on 2014-12-19 17:56:46 UTC
(
hide
)
Description:
Bug 13476: Fix DataTables for the search items form
Filename:
MIME Type:
Creator:
Mirko Tietgen
Created:
2014-12-19 17:56:46 UTC
Size:
1.91 KB
patch
obsolete
>From 90823f702344f4c08b2353db0be1e1179a0ec5ad Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Fri, 19 Dec 2014 10:28:47 +0100 >Subject: [PATCH] Bug 13476: Fix DataTables for the search items form >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >This items form is broken since the upgrade to DataTables 1.10.2 (commit >954c2874d0d9ebfa2e910dcd4445010115fac329). >The fnServerParams does not work anymore. > >Test plan: >Go on catalogue/itemsearch.pl, launch a search and verify the data are >correctly displayed in the table. > >Followed test plan. Works as expected. >Signed-off-by: Marc Véron <veron@veron.ch> > >Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net> >--- > .../intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt | 11 ++++++++++- > 1 file changed, 10 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 0c65c11..a8a7030 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt >@@ -215,11 +215,20 @@ > 'bServerSide': true, > 'bProcessing': true, > 'sAjaxSource': '/cgi-bin/koha/catalogue/itemsearch.pl', >- 'fnServerParams': function(aoData) { >+ 'fnServerData': function(sSource, aoData, fnCallback) { > aoData.push( { 'name': 'format', 'value': 'json' } ); > for (i in params) { > aoData.push(params[i]); > } >+ $.ajax({ >+ 'dataType': 'json', >+ 'type': 'POST', >+ 'url': sSource, >+ 'data': aoData, >+ 'success': function(json){ >+ fnCallback(json); >+ } >+ }); > }, > 'sDom': '<"top pager"ilp>t<"bottom pager"ip>r', > 'aoColumns': [ >-- >1.7.10.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 13476
:
34521
|
34584
|
34596
|
34600
|
34601