]> git.koha-community.org Git - koha.git/commit
Bug 22239: JavaScript error on subscription detail page when there are no orders
authorOwen Leonard <oleonard@myacpl.org>
Wed, 30 Jan 2019 19:58:25 +0000 (19:58 +0000)
committerroot <root@f1ebe1bec408>
Tue, 19 Feb 2019 13:52:14 +0000 (13:52 +0000)
commita27a6e6d729cd3b6be0251c1c6bda5a763fea6bc
tree717a60f0948b8547b7bc8d1ea17018661d9ad7c5
parent83fe95d0c5d404a2ffc6ed35e822ff0f5ee8b6e6
Bug 22239: JavaScript error on subscription detail page when there are no orders

This page modifies the subscription detail page so that a JavaScript
error isn't triggered when a subscription has no acquisition details.

To test, apply the patch and go to Serials.

 - Locate a subscription which isn't tied to acquisitions. In the
   browser console there should be no errors.
 - Locate a subscription which is part of an order. There should be an
   'Acquisitions details' tab and the order information on that tab
   should be displayed as a collapsible tree.

Signed-off-by: Charles Farmer <charles.farmer@inLibro.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt