class TreeBuilderTemplatesImagesFilter < TreeBuilderVmsFilter
  def tree_init_options
    super.update(:leaf => 'MiqTemplate')
  end

  def set_locals_for_render
    super.merge!(:allow_reselect => true)
  end

  def root_options
    {
      :text    => _("All Templates & Images"),
      :tooltip => _("All of the Templates & Images that I can see")
    }
  end
end

class TreeBuilderTemplatesImagesFilter < TreeBuilderVmsFilter
  def tree_init_options
    super.update(:leaf => 'MiqTemplate')
  end

  def root_options
    {
      :text    => _("All Templates & Images"),
      :tooltip => _("All of the Templates & Images that I can see")
    }
  end
end

Remove duplicated allow_reselect from TreeBuilderTemplateImagesFilter
Remove duplicated allow_reselect from TreeBuilderTemplateImagesFilter
