]> 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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 25 Feb 2019 18:34:24 +0000 (18:34 +0000)
commite7a36d25787d8914e6ba4d30155bffac88370470
tree6ea957f4d446307590297c44dcdc4c5e6c2b040d
parent4a88b9aa339b1e188166dc838c48f266308521c6
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>
(cherry picked from commit a27a6e6d729cd3b6be0251c1c6bda5a763fea6bc)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt