diff --git a/NzbDrone.Api/ClientSchema/Field.cs b/NzbDrone.Api/ClientSchema/Field.cs index 5737cb3a5..00ac78618 100644 --- a/NzbDrone.Api/ClientSchema/Field.cs +++ b/NzbDrone.Api/ClientSchema/Field.cs @@ -6,7 +6,7 @@ public string Name { get; set; } public string Label { get; set; } public string HelpText { get; set; } - public string Value { get; set; } + public object Value { get; set; } public string Type { get; set; } } } \ No newline at end of file diff --git a/NzbDrone.Api/ClientSchema/SchemaBuilder.cs b/NzbDrone.Api/ClientSchema/SchemaBuilder.cs index 58f3d11cb..f4847f45c 100644 --- a/NzbDrone.Api/ClientSchema/SchemaBuilder.cs +++ b/NzbDrone.Api/ClientSchema/SchemaBuilder.cs @@ -31,7 +31,7 @@ namespace NzbDrone.Api.ClientSchema var value = propertyInfo.GetValue(model, null); if (value != null) { - field.Value = value.ToString(); + field.Value = value; } result.Add(field); diff --git a/UI/Settings/Notifications/EditTemplate.html b/UI/Settings/Notifications/EditTemplate.html index 11b51d5e2..f31574abd 100644 --- a/UI/Settings/Notifications/EditTemplate.html +++ b/UI/Settings/Notifications/EditTemplate.html @@ -53,9 +53,6 @@ {{#each fields}} - {{debug}} - {{order}} - {{value}} {{formField}} {{/each}}