Skip to content
Browse files

Fixed bug with pagination when product datasheet can't be created

  • Loading branch information...
1 parent 35de767 commit b06f873ab897a2435dc47c76a4ac4a513883405b @romul romul committed Aug 10, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/controllers/spree/admin/product_datasheets_controller.rb
View
4 app/controllers/spree/admin/product_datasheets_controller.rb
@@ -46,8 +46,8 @@ def create
flash.notice = I18n.t("notice_messages.product_datasheet_saved")
redirect_to admin_product_datasheets_path
else
- @product_datasheets = Spree::ProductDatasheet.not_deleted
- render :template => 'spree/admin/product_datasheets/index', :action => :new
+ flash[:error] = "Failed to create the product datasheet"
+ redirect_to admin_product_datasheets_path
end
end
end

0 comments on commit b06f873

Please sign in to comment.
Something went wrong with that request. Please try again.