AMBARI-16762. Uncaught error in Ambari Web (alexantonenko)

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

Branch: refs/heads/trunk
Commit: 4440db3fdf6db64c1565b696be5959c19cf8d81c
Parents: 420c8d5
Author: Alex Antonenko <[email protected]>
Authored: Thu May 19 12:05:04 2016 +0300
Committer: Alex Antonenko <[email protected]>
Committed: Thu May 19 12:43:52 2016 +0300

----------------------------------------------------------------------
 ambari-web/app/controllers/installer.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/4440db3f/ambari-web/app/controllers/installer.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/installer.js 
b/ambari-web/app/controllers/installer.js
index d8000c7..7d65ddc 100644
--- a/ambari-web/app/controllers/installer.js
+++ b/ambari-web/app/controllers/installer.js
@@ -442,9 +442,8 @@ App.InstallerController = App.WizardController.extend({
     App.db.setStacks(stacks.slice());
     this.set('content.stacks', stacks);
 
-    App.OperatingSystem.find().filterProperty('isSelected', 
false).map(function (os) {
-      os.deleteRecord();
-      App.store.commit();
+    App.OperatingSystem.find().filterProperty('isSelected', 
false).forEach(function (os) {
+      App.serviceMapper.deleteRecord(os);
     });
     var repos = App.Repository.find() || [];
     App.db.setRepos(repos.slice());

Reply via email to