From 16f18e9807973c1e8b73621c6e9f64cba292481d Mon Sep 17 00:00:00 2001 From: Zita Nemeckova Date: Tue, 22 Oct 2019 13:48:08 +0200 Subject: [PATCH] Fix edit of GOD custom button Request is not saved Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1753237 --- .../components/generic_object/main-custom-button-form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/components/generic_object/main-custom-button-form.js b/app/assets/javascripts/components/generic_object/main-custom-button-form.js index 0e91a2ce0d3..5b9944e4673 100644 --- a/app/assets/javascripts/components/generic_object/main-custom-button-form.js +++ b/app/assets/javascripts/components/generic_object/main-custom-button-form.js @@ -207,7 +207,7 @@ function mainCustomButtonFormController(API, miqService, $q, $http) { } // set uri_attributes to default for non-Ansible button if (vm.customButtonModel.button_type == "default") { - vm.customButtonModel.uri_attributes = {"request": "", service_template: null, hosts: null}; + vm.customButtonModel.uri_attributes = {"request": vm.customButtonModel.request, service_template: null, hosts: null}; }; vm.customButtonModel.visibility = {