Fixed #1625 where the internal options were also sent to advanced options

This commit is contained in:
Kenneth Skovhede
2016-03-14 10:32:39 +01:00
parent 1d417eb085
commit 53ef8e90dd
@@ -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);