From 6a7b0ae4092ecbbc96e51b4ef02c73d0b61b7d30 Mon Sep 17 00:00:00 2001 From: wvengen Date: Sat, 16 Apr 2016 21:15:53 +0200 Subject: [PATCH] Fix sync ignored article count --- app/controllers/articles_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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