Repository: ambari Updated Branches: refs/heads/branch-2.4 e30453f1b -> 482e15eae
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/482e15ea Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/482e15ea Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/482e15ea Branch: refs/heads/branch-2.4 Commit: 482e15eae9e31d59c17675591b14e7b2c05528c6 Parents: e30453f Author: Alex Antonenko <[email protected]> Authored: Thu May 19 12:05:04 2016 +0300 Committer: Alex Antonenko <[email protected]> Committed: Thu May 19 12:49:10 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/482e15ea/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());
