From f2d8a00d228437ea2b22c2e019b139bad3f5802d Mon Sep 17 00:00:00 2001 From: Kenneth Skovhede Date: Sun, 29 Nov 2015 00:40:09 +0100 Subject: [PATCH] Removed an error message whenr restoring from an existing backup --- .../webroot/ngax/scripts/controllers/RestoreController.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Duplicati/Server/webroot/ngax/scripts/controllers/RestoreController.js b/Duplicati/Server/webroot/ngax/scripts/controllers/RestoreController.js index 809ff9657..0f328d156 100644 --- a/Duplicati/Server/webroot/ngax/scripts/controllers/RestoreController.js +++ b/Duplicati/Server/webroot/ngax/scripts/controllers/RestoreController.js @@ -145,6 +145,10 @@ backupApp.controller('RestoreController', function ($rootScope, $scope, $routePa } else { var stamp = filesetStamps[version]; + // In case the times are not loaded yet + if (stamp == null) + return; + $scope.connecting = true; $scope.ConnectionProgress = 'Fetching path information ...'; inProgress[version] = true; @@ -396,7 +400,7 @@ backupApp.controller('RestoreController', function ($rootScope, $scope, $routePa // We pass in the filelist through a global variable // ... bit ugly, but we do not want to do two remote queries, // ... nor do we want to pass the information through the url - if ($rootScope.filesets && $rootScope.filesets[$scope.BackupID]) { + if ($scope.IsBackupTemporary && $rootScope.filesets && $rootScope.filesets[$scope.BackupID]) { $scope.Filesets = $rootScope.filesets[$scope.BackupID]; $scope.parseBackupTimesData(); $scope.fetchPathInformation();