Fix sync ignored article count

This commit is contained in:
wvengen 2016-04-16 21:15:53 +02:00
parent 61189dc035
commit 6a7b0ae409

View file

@ -232,7 +232,7 @@ class ArticlesController < ApplicationController
# @return [Number] Number of articles not taken into account when syncing (having no number) # @return [Number] Number of articles not taken into account when syncing (having no number)
def ignored_article_count def ignored_article_count
if action_name == 'sync' || params[:from_action] == 'sync' if action_name == 'sync' || params[:from_action] == 'sync'
@ignored_article_count ||= @supplier.articles.where(order_number: [nil, '']).count @ignored_article_count ||= @supplier.articles.undeleted.where(order_number: [nil, '']).count
else else
0 0
end end