mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-04 10:02:40 +01:00
Should ignore Id when its 0
This commit is contained in:
parent
343a794c2a
commit
e1b9fb2f16
@ -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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user