Revert some changes of 20adce8a4e2d32548e7d7016dace250dd3e2eb9b
This commit is contained in:
parent
033aa90698
commit
a384532619
2 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue