Change comment according to 9d61e2e61569159489098eda1bd6c30d7322ce76

This commit is contained in:
Julius 2014-01-01 23:54:01 +01:00 committed by wvengen
parent 8e52fca304
commit dd138da1a6

View file

@ -11,7 +11,7 @@ class OrderArticlesController < ApplicationController
def create
@order = Order.find(params[:order_id])
# The article may with zero units ordered - in that case find and set amount to nonzero.
# The article may be ordered with zero units - in that case do not complain.
# If order_article is ordered and a new order_article is created, an error message will be
# given mentioning that the article already exists, which is desired.
@order_article = @order.order_articles.where(:article_id => params[:order_article][:article_id]).first