fix upload error

This commit is contained in:
wvengen 2014-09-10 14:41:35 +02:00
parent f18cc367ae
commit ee1874a15f

View file

@ -150,7 +150,7 @@ class ArticlesController < ApplicationController
# fallback to Others category # fallback to Others category
category = (ArticleCategory.find_match(row[:category]) or no_category) category = (ArticleCategory.find_match(row[:category]) or no_category)
# creates a new article and price # creates a new article and price
article = Article.new( :name => row[:name], article = @supplier.articles.build(:name => row[:name],
:note => row[:note], :note => row[:note],
:manufacturer => row[:manufacturer], :manufacturer => row[:manufacturer],
:origin => row[:origin], :origin => row[:origin],