[Bug 17125] New: opac-basket: DataTables warning: table id= itemst - Cannot reinitialise DataTable.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17125 Bug ID: 17125 Summary: opac-basket: DataTables warning: table id=itemst - Cannot reinitialise DataTable. Change sponsored?: --- Product: Koha Version: 3.22 Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: OPAC Assignee: oleonard@myacpl.org Reporter: m.de.rooy@rijksmuseum.nl QA Contact: testopia@bugs.koha-community.org Put items in your cart. Click on the cart. Error: DataTables warning: table id=itemst - Cannot reinitialise DataTable. For more information about this error, please see http://datatables.net/tn/3 Anyone else seeing this error in 3.22? Problem is not in master, since DataTables has been upgraded on report 15285. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17125 --- Comment #1 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- It should not appear, since the table seems to be initialized only once in the document ready function. But putting this check around it should resolve the problem: if( ! $.fn.dataTable.isDataTable('#itemst') ) { ... } -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17125 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart@bugs.koha-c | |ommunity.org --- Comment #2 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Marcel, I do not get the error and the table displays correctly. However, looking at the code: 243 [% UNLESS ( print_basket ) %]<th> </th>[% END %] This test does not exist in the aoColumns declaration. But it should only affects the display when you print the page. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17125 --- Comment #3 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Hmm Not only opac-basket. opac-detail, opac-user etc. Probably all occurrences of dataTables.. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17125 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #4 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Horrible: A duplicated PROCESS jsinclude line in opac-bottom.inc was the culprit. Somehow created in a rebase. Closing this report now. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17125 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org