Skip to content

Commit b068d32

Browse files
committed
Fix inconsistency when displaying search results containing things in a space
in development env
1 parent 10efb8b commit b068d32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/facets.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module Facets
99
start: ->(c) { c.name == 'Event' },
1010
running_during: ->(c) { c.name == 'Event' },
1111
include_hidden: ->(c) { c.method_defined?(:user_requires_approval?) },
12-
across_all_spaces: ->(c) { TeSS::Config.feature['spaces'] && c.method_defined?(:space_id) }
12+
across_all_spaces: ->(c) { TeSS::Config.feature['spaces'] && c.reflect_on_association(:space) }
1313
}.with_indifferent_access.freeze
1414

1515
CONVERSIONS = {

0 commit comments

Comments
 (0)