diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 5ddb6fcc4..32b1aff69 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -19,7 +19,8 @@ - added Survey now has a loading mask on Survey edit ajax calls. - fixed: Sliders fixed. Improved algorithm for determining pixel step size. - rfe #9355: Password Recovery email subject (SDH Consulting Group) - - added: Users can now set a minimum cart amount required for checkout. (Martin Kamerbeek / Oqapi ) + - added: Users can now set a minimum cart amount required for checkout. ( Martin Kamerbeek / Oqapi ) + - fixed validation issue in the donation asset ( Martin kamerbeek / Oqapi ) 7.6.14 - fixed: IE6 shows Admin Bar over Asset Manager diff --git a/lib/WebGUI/Asset/Sku/Donation.pm b/lib/WebGUI/Asset/Sku/Donation.pm index c748feb7b..171f40b93 100644 --- a/lib/WebGUI/Asset/Sku/Donation.pm +++ b/lib/WebGUI/Asset/Sku/Donation.pm @@ -169,11 +169,15 @@ Accepts the information from the donation form and adds it to the cart. =cut sub www_donate { - my $self = shift; - if ($self->canView) { + my $self = shift; + my $price = $self->session->form->get("price") || $self->getPrice; + + if ($self->canView && $price > 0) { $self->{_hasAddedToCart} = 1; + my $price = $self->addToCart({price => ($self->session->form->get("price") || $self->getPrice) }); } + return $self->www_view; }