Deprecate IsRequired on Email datatype (#8655)

* Deprecate IsRequired on Email datatype

* Add Obsolete to IsRequired in EmailAddressConfig
This commit is contained in:
Steve Temple
2020-08-19 14:03:38 +01:00
committed by GitHub
parent ea40cea420
commit addc6ae51a
@@ -1,4 +1,5 @@
using Umbraco.Core.PropertyEditors;
using System;
using Umbraco.Core.PropertyEditors;
namespace Umbraco.Web.PropertyEditors
{
@@ -7,7 +8,8 @@ namespace Umbraco.Web.PropertyEditors
/// </summary>
public class EmailAddressConfiguration
{
[ConfigurationField("IsRequired", "Required?", "boolean")]
[ConfigurationField("IsRequired", "Required?", "hidden", Description = "Deprecated; Make this required by selecting mandatory when adding to the document type")]
[Obsolete("No longer used, use `Mandatory` for the property instead. Will be removed in the next major version")]
public bool IsRequired { get; set; }
}
}