Merge pull request #5497 from duplicati/feature/fix-saving-settings
Fixed saving settings with numbers
This commit is contained in:
@@ -325,7 +325,7 @@ backupApp.controller('EditBackupController', function ($rootScope, $scope, $rout
|
||||
|
||||
result.Backup.Settings.push({
|
||||
Name: k,
|
||||
Value: opts[k],
|
||||
Value: opts[k]?.toString(),
|
||||
Filter: origfilter,
|
||||
Argument: origarg
|
||||
});
|
||||
@@ -480,7 +480,7 @@ backupApp.controller('EditBackupController', function ($rootScope, $scope, $rout
|
||||
} else {
|
||||
|
||||
function putDb() {
|
||||
AppService.put('/backup/' + $routeParams.backupid, result, {'headers': {'Content-Type': 'application/json'}}).then(function() {
|
||||
AppService.put('/backup/' + $routeParams.backupid, result).then(function() {
|
||||
$location.path('/');
|
||||
}, AppUtils.connectionError);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
using Duplicati.Library.Encryption;
|
||||
using Duplicati.Library.Interface;
|
||||
using Duplicati.Library.RestAPI.Abstractions;
|
||||
using Duplicati.Server;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
using System.Text.Json;
|
||||
using Duplicati.Library.RestAPI.Abstractions;
|
||||
using Duplicati.Server;
|
||||
using Duplicati.Server.Database;
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
using System.Text.Json;
|
||||
using Duplicati.Library.Encryption;
|
||||
using Duplicati.Library.IO;
|
||||
using Duplicati.Library.RestAPI;
|
||||
using Duplicati.Library.RestAPI.Abstractions;
|
||||
using Duplicati.Server;
|
||||
using Duplicati.Server.Database;
|
||||
|
||||
Reference in New Issue
Block a user