AMBARI-22206. Downgrade UI shown Null when on Patch revert (alexantonenko)

Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/73415675
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/73415675
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/73415675

Branch: refs/heads/branch-feature-AMBARI-22008
Commit: 734156756c1f8b35f6af0a4c8d9669e61daa8042
Parents: 08bdd80
Author: Alex Antonenko <aantone...@hortonworks.com>
Authored: Wed Oct 11 19:02:28 2017 +0300
Committer: Alex Antonenko <aantone...@hortonworks.com>
Committed: Wed Oct 11 19:02:28 2017 +0300

----------------------------------------------------------------------
 .../app/controllers/main/admin/stack_and_upgrade_controller.js   | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/73415675/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 29e0687..2f0cb68 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
@@ -2147,9 +2147,7 @@ App.MainAdminStackAndUpgradeController = 
Em.Controller.extend(App.LocalStorage,
     });
     this.loadRepoVersionsToModel().done(function () {
       var toVersion = 
App.RepositoryVersion.find().findProperty('repositoryVersion', 
lastUpgradeData.Upgrade.associated_version);
-      if (!isDowngrade) {
-        self.setDBProperty('upgradeVersion', toVersion && 
toVersion.get('displayName'));
-      }
+      self.setDBProperty('upgradeVersion', toVersion && 
toVersion.get('displayName'));
       self.initDBProperties();
       self.loadUpgradeData(true);
     });

Reply via email to