Replace evil magic number with constant

This commit is contained in:
Stephan
2015-11-03 17:54:51 +01:00
parent 901d55b472
commit 6fd185df2d
4 changed files with 16 additions and 10 deletions

View File

@@ -13,6 +13,12 @@ namespace Umbraco.Web.Models.ContentEditing
Properties = new List<TPropertyType>();
}
// a special id we use for generic properties
public const int GenericPropertiesGroupId = -666;
[IgnoreDataMember]
public bool IsGenericProperties { get { return Id == GenericPropertiesGroupId; } }
//Indicate if this tab was inherited
[DataMember(Name = "inherited")]
public bool Inherited { get; set; }