Repository: ambari Updated Branches: refs/heads/trunk 67fc4a378 -> 26bcc97bc
AMBARI-22681 Ambari web UI failed to update stack repo directly from the Versions tab (dili) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/26bcc97b Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/26bcc97b Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/26bcc97b Branch: refs/heads/trunk Commit: 26bcc97bcb4016948fd28d76943eb9ad23c7a4e6 Parents: 67fc4a3 Author: Di Li <d...@apache.org> Authored: Thu Dec 21 11:45:33 2017 -0500 Committer: Di Li <d...@apache.org> Committed: Thu Dec 21 11:45:33 2017 -0500 ---------------------------------------------------------------------- .../app/controllers/main/admin/stack_and_upgrade_controller.js | 1 + ambari-web/app/utils/ajax/ajax.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/26bcc97b/ambari-web/app/controllers/main/admin/stack_and_upgrade_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/main/admin/stack_and_upgrade_controller.js b/ambari-web/app/controllers/main/admin/stack_and_upgrade_controller.js index 2f0cb68..35041bf 100644 --- a/ambari-web/app/controllers/main/admin/stack_and_upgrade_controller.js +++ b/ambari-web/app/controllers/main/admin/stack_and_upgrade_controller.js @@ -1695,6 +1695,7 @@ App.MainAdminStackAndUpgradeController = Em.Controller.extend(App.LocalStorage, sender: this, data: { repo: repo, + repoName: repo.get('repoName'), repoId: repo.get('repoId'), baseUrl: repo.get('baseUrl'), osType: os.get('osType'), http://git-wip-us.apache.org/repos/asf/ambari/blob/26bcc97b/ambari-web/app/utils/ajax/ajax.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/utils/ajax/ajax.js b/ambari-web/app/utils/ajax/ajax.js index 3f85dfdc..42bb974 100644 --- a/ambari-web/app/utils/ajax/ajax.js +++ b/ambari-web/app/utils/ajax/ajax.js @@ -1843,7 +1843,8 @@ var urls = { return { data: JSON.stringify({ "Repositories": { - "base_url": data.baseUrl + "base_url": data.baseUrl, + "repo_name": data.repoName } }) }