Should ignore Id when its 0

This commit is contained in:
Mark McDowall committed 2013-05-24 20:40:35 -07:00
1 parent 343a794c2a
commit e1b9fb2f16
2 files changed
+4 -1

No files matched your search

+3 -1
View File
@@ -1,10 +1,12 @@
using FluentValidation;
using System.ComponentModel;
using FluentValidation;
using Newtonsoft.Json;
namespace NzbDrone.Api.REST
{
public abstract class RestResource
{
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
public int Id { get; set; }
[JsonIgnore]
@@ -20,6 +20,7 @@ define([
initialize: function () {
this.model.set('isExisting', true);
this.model.set('id', undefined);
},
addSeries: function () {