[Refs #263] Fix copy-past evil
This commit is contained in:
parent
d382732e68
commit
1ef60a3f94
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue