Fixed booleans when sent to client in fields

This commit is contained in:
Mark McDowall 2013-05-21 00:55:44 -07:00
parent cdd03fa712
commit 339e220cac
3 changed files with 2 additions and 5 deletions

View File

@ -6,7 +6,7 @@
public string Name { get; set; } public string Name { get; set; }
public string Label { get; set; } public string Label { get; set; }
public string HelpText { get; set; } public string HelpText { get; set; }
public string Value { get; set; } public object Value { get; set; }
public string Type { get; set; } public string Type { get; set; }
} }
} }

View File

@ -31,7 +31,7 @@ namespace NzbDrone.Api.ClientSchema
var value = propertyInfo.GetValue(model, null); var value = propertyInfo.GetValue(model, null);
if (value != null) if (value != null)
{ {
field.Value = value.ToString(); field.Value = value;
} }
result.Add(field); result.Add(field);

View File

@ -53,9 +53,6 @@
</div> </div>
{{#each fields}} {{#each fields}}
{{debug}}
{{order}}
{{value}}
{{formField}} {{formField}}
{{/each}} {{/each}}
</div> </div>