From 6fb4988ac947f5663d038941d0774d9d9c960c3b Mon Sep 17 00:00:00 2001 From: Syphax Date: Wed, 11 Dec 2024 04:09:32 +0100 Subject: [PATCH] update browse page categories_refresh_for_federation condition to work to reset to not federated mod --- app/controllers/ontologies_controller.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/controllers/ontologies_controller.rb b/app/controllers/ontologies_controller.rb index 92a807fe7..f47a16500 100644 --- a/app/controllers/ontologies_controller.rb +++ b/app/controllers/ontologies_controller.rb @@ -60,18 +60,20 @@ def ontologies_filter end end.flatten - unless request_portals.length == 1 + if federated_request? streams += [ replace('categories_refresh_for_federation') do - key = "categories" + key = 'categories' objects, checked_values, _ = @filters[key.to_sym] objects = keep_only_root_categories(objects) + helpers.browse_filter_section_body(checked_values: checked_values, key: key, objects: objects, counts: @count_objects[key.to_sym]) end ] end + else streams = [replace("ontologies_list_view-page-#{@page.page}", partial: 'ontologies/browser/ontologies')] end