[Refs #263] Fix copy-past evil

This commit is contained in:
Vladimir Sharshov 2012-04-03 17:14:08 +04:00
parent d382732e68
commit 1ef60a3f94
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ class ProductsController < ApplicationController
redirect_to platform_product_path(@platform, @product)
else
flash[:error] = t('flash.product.save_error')
flash[:warning] = @platform.errors.full_messages.join('. ')
flash[:warning] = @product.errors.full_messages.join('. ')
render :action => :new
end
end
@ -38,7 +38,7 @@ class ProductsController < ApplicationController
redirect_to platform_product_path(@platform, @product)
else
flash[:error] = t('flash.product.save_error')
flash[:warning] = @platform.errors.full_messages.join('. ')
flash[:warning] = @product.errors.full_messages.join('. ')
render :action => "edit"
end
end