From 53ef8e90dd75d5f08facf5dfd69b43eb944d6d1c Mon Sep 17 00:00:00 2001 From: Kenneth Skovhede Date: Mon, 14 Mar 2016 10:32:39 +0100 Subject: [PATCH] Fixed #1625 where the internal options were also sent to advanced options --- .../webroot/ngax/scripts/controllers/EditBackupController.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Duplicati/Server/webroot/ngax/scripts/controllers/EditBackupController.js b/Duplicati/Server/webroot/ngax/scripts/controllers/EditBackupController.js index 11da6a013..ee9a178f6 100644 --- a/Duplicati/Server/webroot/ngax/scripts/controllers/EditBackupController.js +++ b/Duplicati/Server/webroot/ngax/scripts/controllers/EditBackupController.js @@ -409,8 +409,9 @@ backupApp.controller('EditBackupController', function ($scope, $routeParams, $lo else if (($scope.Options['keep-versions'] || '').trim().length != 0) $scope.KeepType = 'versions'; - for(var n in ['--skip-files-larger-than', '--exclude-files-attributes', '--no-encryption']) - delete extopts[n]; + var delopts = ['--skip-files-larger-than', '--exclude-files-attributes', '--no-encryption'] + for(var n in delopts) + delete extopts[delopts[n]]; $scope.ExtendedOptions = AppUtils.serializeAdvancedOptionsToArray(extopts);