fix upload error
This commit is contained in:
parent
f18cc367ae
commit
ee1874a15f
1 changed files with 1 additions and 1 deletions
|
@ -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],
|
||||||
|
|
Loading…
Reference in a new issue