Revert some changes of 20adce8a4e2d32548e7d7016dace250dd3e2eb9b

This commit is contained in:
Julius 2014-01-01 16:54:49 +01:00 committed by wvengen
parent 033aa90698
commit a384532619
2 changed files with 1 additions and 2 deletions

View file

@ -18,7 +18,7 @@ class OrderArticlesController < ApplicationController
if @order_article and @order_article.units_to_order == 0
@order_article.units_to_order = 1 # FIXME: this is ugly if used in the receive form
else
@order_article = OrderArticle.new(params[:order_article])
@order_article = @order.order_articles.build(params[:order_article])
end
@order_article.save!
rescue