Fix syncing articles with non-import sync methods (#633)
This commit is contained in:
parent
d669edb173
commit
9283ed4f5e
3 changed files with 66 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ class SharedSupplier < ApplicationRecord
|
|||
def shared_sync_methods
|
||||
methods = []
|
||||
methods += %w(all_available all_unavailable) if shared_articles.count < FoodsoftConfig[:shared_supplier_article_sync_limit]
|
||||
methods += %w(import) # perhaps, in the future: if shared_articles.count > 20
|
||||
methods += %w(import)
|
||||
methods
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue