From c877220d79c99584ef749ff6c50b3bc6187bb4ab Mon Sep 17 00:00:00 2001 From: Harpreet Kataria Date: Tue, 21 Nov 2017 15:56:01 -0500 Subject: [PATCH] Fixed if condition to check for action instead of action_name When Order button is clicked from list view, action_name value is sent up as x_button making the code go thru if condition and show double buttons on screen. https://bugzilla.redhat.com/show_bug.cgi?id=1514593 --- app/controllers/catalog_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/catalog_controller.rb b/app/controllers/catalog_controller.rb index 6fe3948cdd8..24e64cc8318 100644 --- a/app/controllers/catalog_controller.rb +++ b/app/controllers/catalog_controller.rb @@ -2059,7 +2059,7 @@ def replace_right_cell(options = {}) } end end - if Settings.product.old_dialog_user_ui || action_name != "svc_catalog_provision" + if Settings.product.old_dialog_user_ui presenter.show(:form_buttons_div, :buttons_on) presenter.update( :form_buttons_div,