Fixed bug in commenting orders.
This commit is contained in:
parent
86b2b28dc9
commit
8cb8701c60
1 changed files with 3 additions and 0 deletions
|
@ -10,6 +10,9 @@ class StockitController < ApplicationController
|
||||||
def new
|
def new
|
||||||
@supplier = Supplier.find(params[:supplier_id])
|
@supplier = Supplier.find(params[:supplier_id])
|
||||||
@stock_article = @supplier.stock_articles.build(:tax => 7.0)
|
@stock_article = @supplier.stock_articles.build(:tax => 7.0)
|
||||||
|
rescue
|
||||||
|
flash[:error] = "Es wurde kein gültiger Lieferant ausgewählt."
|
||||||
|
redirect_to stock_articles_path
|
||||||
end
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
|
|
Loading…
Reference in a new issue