fix upload error

This commit is contained in:
wvengen 2014-09-10 14:41:35 +02:00
parent f18cc367ae
commit ee1874a15f
1 changed files with 1 additions and 1 deletions

View File

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