diff --git a/app/controllers/ems_physical_infra_controller.rb b/app/controllers/ems_physical_infra_controller.rb index 4858359ebea..1bbe4d32e2a 100644 --- a/app/controllers/ems_physical_infra_controller.rb +++ b/app/controllers/ems_physical_infra_controller.rb @@ -18,6 +18,11 @@ def self.table_name @table_name ||= "ems_physical_infra" end + def show_list + @without_listnav = true + super + end + def ems_path(*args) ems_physical_infra_path(*args) end diff --git a/app/helpers/application_helper/page_layouts.rb b/app/helpers/application_helper/page_layouts.rb index 3b425955902..08da6ddf988 100644 --- a/app/helpers/application_helper/page_layouts.rb +++ b/app/helpers/application_helper/page_layouts.rb @@ -1,6 +1,7 @@ module ApplicationHelper::PageLayouts def layout_uses_listnav? - return false if @in_a_form + return false if @in_a_form || @without_listnav + return false if %w( about all_tasks