Skip to content

Commit

Permalink
Merge pull request ManageIQ#1673 from borod108/bugs/missing_ppcchoices
Browse files Browse the repository at this point in the history
Fix missing constant in application_controller
  • Loading branch information
martinpovolny committed Jul 14, 2017
2 parents 7a438d6 + 08d4ad2 commit b7d26cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1872,7 +1872,7 @@ def get_global_session_data
handle_remember_tab

# Get all of the global variables used by most of the controllers
@pp_choices = PPCHOICES
@pp_choices = UiConstants::PPCHOICES
@panels = session[:panels].nil? ? {} : session[:panels]
@breadcrumbs = session[:breadcrumbs].nil? ? [] : session[:breadcrumbs]
@panels["icon"] = true if @panels["icon"].nil? # Default icon panels to be open
Expand Down
4 changes: 2 additions & 2 deletions app/controllers/miq_task_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def change_tab
end

def build_jobs_tab
@pp_choices = PPCHOICES2 # Get special pp choices for jobs/tasks lists
@pp_choices = UiConstants::PPCHOICES2 # Get special pp choices for jobs/tasks lists
@settings[:perpage][:job_task] ||= 50 # Default to 50 per page until changed
@tasks_options = HashWithIndifferentAccess.new if @tasks_options.blank?
@tasks_options[:zones] = Zone.all.collect { |z| z.name unless z.miq_servers.blank? }.compact
Expand Down Expand Up @@ -179,7 +179,7 @@ def tasks_button
end

list_jobs # Get the jobs based on the latest options
@pp_choices = PPCHOICES2 # Get special pp choices for jobs/tasks lists
@pp_choices = UiConstants::PPCHOICES2 # Get special pp choices for jobs/tasks lists

render :update do |page|
page << javascript_prologue
Expand Down

0 comments on commit b7d26cb

Please sign in to comment.