Project

General

Profile

« Previous | Next » 

Revision b1b151d8

Added by Joseph Magen over 11 years ago

  • ID b1b151d83f2fb6c37e039d2662a7fc7587f13555

fixes #2166 - error when clearing location

View differences:

lib/foreman/controller/taxonomies_controller.rb
before_filter :find_taxonomy, :only => %w{edit update destroy clone_taxonomy assign_hosts
assign_selected_hosts assign_all_hosts step2 select}
before_filter :count_nil_hosts, :only => %w{index create step2}
skip_before_filter :authorize, :set_taxonomy, :only => %w{select}
skip_before_filter :authorize, :set_taxonomy, :only => %w{select clear}
end
module InstanceMethods
......
redirect_back_or_to root_url
end
def clear
taxonomy_class.current = nil
session[taxonomy_id] = nil
expire_fragment("tabs_and_title_records-#{User.current.id}")
redirect_back_or_to root_url
end
def mismatches
@mismatches = Taxonomy.all_mismatcheds
render 'taxonomies/mismatches'

Also available in: Unified diff