]> git.koha-community.org Git - koha.git/commit
Bug 25274: Don't initialize DataTable if table isn't present
authorOwen Leonard <oleonard@myacpl.org>
Fri, 24 Apr 2020 11:49:21 +0000 (11:49 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 14 May 2020 20:58:13 +0000 (20:58 +0000)
commit6bbb4fc7c061839edb76f8ecee39f8fdb0732760
tree83400f0a9a40b9b2dec89f4d8bddd8b54134f4d0
parenta307d2143f6dc4db9121f982015c1abdc346943c
Bug 25274: Don't initialize DataTable if table isn't present

This patch modifies the OPAC basket JavaScript so that a check is added
for the existence of the "itemst" table. This avoids an error if the
"More details" view is selected and hte "itemst" table isn't present.

To reproduce the error, add some items to the OPAC cart and open the
cart window. Open the JavaScript console in your browser and click the
"More details" link. You'll see an error.

To test, apply the patch and perform the same test as above. The error
should not be present. Test that table sorting in the "brief" view words
correctly.

Signed-off-by: David Roberts <david@koha-ptfs.co.uk>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 2c9e0ac020c99fbcecfe53e6f5588ce2ece4a1fa)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-basket.tt