Change comment according to 9d61e2e61569159489098eda1bd6c30d7322ce76
This commit is contained in:
parent
8e52fca304
commit
dd138da1a6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue