]> 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)
committerKatrin Fischer <katrin.fischer.83@web.de>
Tue, 14 Feb 2017 19:35:16 +0000 (20:35 +0100)
commit87edb0bdddab634598ae75db71748a446a6d37ed
tree7ab03dd2164605f6d45ca5917591bd5c7c062bdb
parent5023593010d62cdcdb7191b7694de9ce58d5ff82
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: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit ba89de5837bbe3055a8b0a04517332d8aee68da7)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt