pass the lastBackupId explicity as the backup to restore to

This commit is contained in:
Girish Ramakrishnan
2016-06-13 10:13:54 -07:00
parent b82610ba00
commit a2ec308155
4 changed files with 8 additions and 3 deletions

View File

@@ -274,7 +274,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
$scope.appRestore.busy = true;
$scope.appRestore.error.password = null;
Client.restoreApp($scope.appRestore.app.id, $scope.appRestore.password, function (error) {
Client.restoreApp($scope.appRestore.app.id, $scope.appRestore.app.lastBackupId, $scope.appRestore.password, function (error) {
if (error && error.statusCode === 403) {
$scope.appRestore.password = '';
$scope.appRestore.error.password = true;