diff --git a/app/controllers/store_controller.rb b/app/controllers/store_controller.rb index 1cd6f1988..439e5e5c8 100644 --- a/app/controllers/store_controller.rb +++ b/app/controllers/store_controller.rb @@ -151,7 +151,7 @@ def process_donation render :action => 'place_order' else # if order fails to finalize, destroy recurring donation row - @recurring_donation.destroy + @recurring_donation.destroy if @recurring_donation redirect_to redirect_route, :alert => @gOrderInProgress.errors.as_html end end