Skip to content

Commit

Permalink
Fix Request Info for Catalog Items
Browse files Browse the repository at this point in the history
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1584172

Data was never copied from session to @options when miq_request/prov_field_changed?tab_id=* request was fired
  • Loading branch information
ZitaNemeckova committed Jun 7, 2018
1 parent f267477 commit 3ac17d4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/controllers/miq_request_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -526,11 +526,13 @@ def get_session_data
@title = _("Requests")
@request_tab = session[:request_tab] if session[:request_tab]
@layout = layout_from_tab_name(@request_tab)
@options = session[:prov_options] if session[:prov_options].present?
end

def set_session_data
super
session[:edit] = @edit unless @edit.nil?
session[:request_tab] = @request_tab unless @request_tab.nil?
session[:edit] = @edit unless @edit.nil?
session[:request_tab] = @request_tab unless @request_tab.nil?
session[:prov_options] = @options if @options
end
end

0 comments on commit 3ac17d4

Please sign in to comment.