Skip to content

Commit

Permalink
Merge pull request #1260 from karelhala/chargebackSort
Browse files Browse the repository at this point in the history
When rates are sorted/changed page do not update GTL if in getting node info for report
  • Loading branch information
himdel committed May 5, 2017
2 parents e438d81 + c6a57da commit 9d0c361
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/controllers/chargeback_controller.rb
Expand Up @@ -87,7 +87,7 @@ def cb_rates_list
session[:rates_sortcol] = @sortcol
session[:rates_sortdir] = @sortdir

update_gtl_div('cb_rates_list') if pagination_or_gtl_request?
update_gtl_div('cb_rates_list') if pagination_or_gtl_request? && @show_list
end

def cb_rate_edit
Expand Down Expand Up @@ -381,7 +381,8 @@ def cb_rpts_fetch_saved_report(id)
end
end

def get_node_info(node, _show_list = true)
def get_node_info(node, show_list = true)
@show_list = show_list
node = valid_active_node(node)
if x_active_tree == :cb_rates_tree
if node == "root"
Expand Down

0 comments on commit 9d0c361

Please sign in to comment.