Skip to content

Commit

Permalink
Merge pull request #3423 from hstastna/View_selector_All_Generic_Obje…
Browse files Browse the repository at this point in the history
…cts_Services

Make view selector of All Generic Objects page work
  • Loading branch information
martinpovolny authored May 23, 2018
2 parents b71ae58 + 3b5b419 commit ca2306d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/service_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def show
def set_display
@display = params[:display]
@display ||= default_display unless pagination_or_gtl_request?
@display ||= 'generic_objects' if role_allows?(:feature => "generic_object_view") && @record.number_of(:generic_objects).positive?
end

def show_generic_object
Expand Down

0 comments on commit ca2306d

Please sign in to comment.