From f5ea5c36cbf17633015bbce4d9a9e05cc7892c8d Mon Sep 17 00:00:00 2001 From: r888888888 Date: Fri, 14 Apr 2017 13:23:50 -0700 Subject: [PATCH] fix css for remove alias/implication --- app/helpers/bulk_update_requests_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/bulk_update_requests_helper.rb b/app/helpers/bulk_update_requests_helper.rb index f55b5358d..d09836a8f 100644 --- a/app/helpers/bulk_update_requests_helper.rb +++ b/app/helpers/bulk_update_requests_helper.rb @@ -10,10 +10,10 @@ module BulkUpdateRequestsHelper TagImplication.where(antecedent_name: antecedent, consequent_name: consequent, status: %w(active processing queued)).exists? when :remove_alias - TagAlias.where(antecedent_name: antecedent, consequent_name: consequent, status: "deleted").exists? + TagAlias.where(antecedent_name: antecedent, consequent_name: consequent, status: "deleted").exists? || !TagAlias.where(antecedent_name: antecedent, consequent_name: consequent).exists? when :remove_implication - TagImplication.where(antecedent_name: antecedent, consequent_name: consequent, status: "deleted").exists? + TagImplication.where(antecedent_name: antecedent, consequent_name: consequent, status: "deleted").exists? || !TagImplication.where(antecedent_name: antecedent, consequent_name: consequent).exists? when :mass_update !Post.raw_tag_match(antecedent).exists?