Author: Hugo Melo <hugo@riseup.net>
Add a fix for adding payments on cycle
%!v(PANIC=String method: strings: negative Repeat count)
diff --git a/plugins/orders/public/javascripts/views/item-quantity-price.tag.slim b/plugins/orders/public/javascripts/views/item-quantity-price.tag.slim index 1d7fb7cf8f40ca535e3926d0d181a436821a02c1..afb02c8ea1f2326250296e4f83c2f68eee72396b 100644 --- a/plugins/orders/public/javascripts/views/item-quantity-price.tag.slim +++ b/plugins/orders/public/javascripts/views/item-quantity-price.tag.slim @@ -79,7 +79,7 @@ } } var orderTag = this.parent.parent orderTag.updateOrder(order) - if (order.errors.length > 0) + if (order.errors && order.errors.length > 0) display_notice(this.t('views.item._edit.error')) else display_notice(this.t('views.item._edit.saved'))