mirror of
https://github.com/Radarr/Radarr
synced 2024-12-26 01:38:24 +00:00
Fixed booleans when sent to client in fields
This commit is contained in:
parent
cdd03fa712
commit
339e220cac
3 changed files with 2 additions and 5 deletions
|
@ -6,7 +6,7 @@ public class Field
|
|||
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; }
|
||||
}
|
||||
}
|
|
@ -31,7 +31,7 @@ public static List<Field> GenerateSchema(object model)
|
|||
var value = propertyInfo.GetValue(model, null);
|
||||
if (value != null)
|
||||
{
|
||||
field.Value = value.ToString();
|
||||
field.Value = value;
|
||||
}
|
||||
|
||||
result.Add(field);
|
||||
|
|
|
@ -53,9 +53,6 @@
|
|||
</div>
|
||||
|
||||
{{#each fields}}
|
||||
{{debug}}
|
||||
{{order}}
|
||||
{{value}}
|
||||
{{formField}}
|
||||
{{/each}}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue