diff --git a/app/controllers/admin/venue_management_bills_controller.rb b/app/controllers/admin/venue_management_bills_controller.rb index 093886d..77c44d9 100644 --- a/app/controllers/admin/venue_management_bills_controller.rb +++ b/app/controllers/admin/venue_management_bills_controller.rb @@ -148,7 +148,7 @@ class Admin::VenueManagementBillsController < Admin::VenueAdminController @venue_management = VenueManagementMain.find(@venue_management_bill.venue_management_main_id) end def copy - @venue_management_bill_to_copy = VenueManagementBill.find(params[:id]) + @venue_management_bill_to_copy = VenueManagementBill.find(params[:bill_id]) attributes = @venue_management_bill_to_copy.attributes.except("_id","updated_at","created_at") VenueManagementBill.fields.each do |k,v| if v.options[:localize] diff --git a/app/views/admin/venue_management_bills/_form.html.erb b/app/views/admin/venue_management_bills/_form.html.erb index 13b7c85..5b2ba02 100644 --- a/app/views/admin/venue_management_bills/_form.html.erb +++ b/app/views/admin/venue_management_bills/_form.html.erb @@ -26,6 +26,7 @@ margin: 0; } +