]> git.koha-community.org Git - koha.git/commit
Bug 16984: Do not clone the item block for standing orders
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 22 Nov 2016 09:35:07 +0000 (09:35 +0000)
committerMason James <mtj@kohaaloha.com>
Wed, 22 Feb 2017 20:36:20 +0000 (09:36 +1300)
commit6c1d46b8e847939e88d381aaccbe6b96634f7dd5
tree485debaadaedcc5d15fddb109706d7a4e7e4661b
parenta82baadf1a7a86a09838fea7f176d0380f675c2f
Bug 16984: Do not clone the item block for standing orders

If AcqCreateItem is set to ordering and the basket is marked as
"standing orders", when ordering a JS error is raised:
additem.js:176 Uncaught TypeError: window[events[i]] is not a function

The item block should not be displayed in that case.

Test plan:
- Set AcqCreateItem to "ordering"
- Create a basket and tick the "Standing orders" checkbox
- Add an order to this basket
=> Without this patch you get the JS error
=> With this patch applied you will not get it

Signed-off-by: Claire Gravely <claire_gravely@hotmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Mason James <mtj@kohaaloha.com>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt