diff --git a/app/controllers/articles_controller.rb b/app/controllers/articles_controller.rb index 5232d03a..1c465caa 100644 --- a/app/controllers/articles_controller.rb +++ b/app/controllers/articles_controller.rb @@ -232,7 +232,7 @@ class ArticlesController < ApplicationController # @return [Number] Number of articles not taken into account when syncing (having no number) def ignored_article_count 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 0 end