diff --git a/app/controllers/lotteries_controller.rb b/app/controllers/lotteries_controller.rb index 2add59dc1..7598893df 100644 --- a/app/controllers/lotteries_controller.rb +++ b/app/controllers/lotteries_controller.rb @@ -187,6 +187,7 @@ def attach_service_form # GET /organizations/:organization_id/lotteries/:id/download_service_form def download_service_form if @lottery.service_form.attached? + @lottery.increment!(:service_form_download_count) redirect_to @lottery.service_form.url(disposition: :attachment), allow_other_host: true else redirect_to setup_organization_lottery_path(@organization, @lottery), notice: "No service form is attached"