Project

General

Profile

Actions

Patch #33728

closed

Remove an unused variable in Query#add_chained_custom_field_filters

Added by Mizuki ISHIKAWA over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Code cleanup/refactoring
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

It's a very small change that remove unused variable.

diff --git a/app/models/query.rb b/app/models/query.rb
index 61c47bdda..77004dbb5 100644
--- a/app/models/query.rb
+++ b/app/models/query.rb
@@ -1378,7 +1378,6 @@ class Query < ActiveRecord::Base
         options = chained.query_filter_options(self)

         filter_id = "cf_#{field.id}.cf_#{chained.id}" 
-        filter_name = chained.name

         add_available_filter filter_id, options.merge({
           :name => l(:label_attribute_of_object, :name => chained.name, :object_name => field.name),
Actions

Also available in: Atom PDF