mirror of
https://github.com/Radarr/Radarr
synced 2025-03-12 15:15:54 +00:00
Should ignore Id when its 0
This commit is contained in:
parent
343a794c2a
commit
e1b9fb2f16
2 changed files with 4 additions and 1 deletions
|
@ -1,10 +1,12 @@
|
||||||
using FluentValidation;
|
using System.ComponentModel;
|
||||||
|
using FluentValidation;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace NzbDrone.Api.REST
|
namespace NzbDrone.Api.REST
|
||||||
{
|
{
|
||||||
public abstract class RestResource
|
public abstract class RestResource
|
||||||
{
|
{
|
||||||
|
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
|
|
|
@ -20,6 +20,7 @@ define([
|
||||||
|
|
||||||
initialize: function () {
|
initialize: function () {
|
||||||
this.model.set('isExisting', true);
|
this.model.set('isExisting', true);
|
||||||
|
this.model.set('id', undefined);
|
||||||
},
|
},
|
||||||
|
|
||||||
addSeries: function () {
|
addSeries: function () {
|
||||||
|
|
Loading…
Add table
Reference in a new issue