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 ba89de5837)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
This commit is contained in:
parent
5023593010
commit
87edb0bddd
|
|
@ -97,7 +97,7 @@ function Check(ff) {
|
|||
|
||||
$(document).ready(function()
|
||||
{
|
||||
[% IF (AcqCreateItemOrdering) %]
|
||||
[% IF AcqCreateItemOrdering and not basket.is_standing %]
|
||||
cloneItemBlock(0, '[% UniqueItemFields %]');
|
||||
[% END %]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue