Project

General

Profile

« Previous | Next » 

Revision 82b4749e

Added by Marek Hulán about 10 years ago

Fixes #5664 - Host filters can use taxonomies

Also disables taxonomy filters on resources that do not support them.

View differences:

app/views/filters/_form.html.erb
<% end %>
<%= selectable_f(f, :resource_type, Permission.resources_with_translations,
{:include_blank => _('(Miscellaneous)')}, {:'data-url' => permissions_path}) %>
{:include_blank => _('(Miscellaneous)')}, {:'data-url' => permissions_path,
:'data-allow-organizations' => @filter.allows_organization_filtering?,
:'data-allow-locations' => @filter.allows_location_filtering?,}) %>
<%= multiple_selects f, :permissions, Permission.where(:resource_type => f.object.resource_type),
f.object.permissions.map(&:id), :label => _("Permission") %>

Also available in: Unified diff