Skip to content

Commit

Permalink
Deprecate IsRequired on Email datatype (umbraco#8655)
Browse files Browse the repository at this point in the history
* Deprecate IsRequired on Email datatype

* Add Obsolete to IsRequired in EmailAddressConfig
  • Loading branch information
stevetemple authored Aug 19, 2020
1 parent ea40cea commit addc6ae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Umbraco.Web/PropertyEditors/EmailAddressConfiguration.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Umbraco.Core.PropertyEditors;
using System;
using Umbraco.Core.PropertyEditors;

namespace Umbraco.Web.PropertyEditors
{
Expand All @@ -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; }
}
}

0 comments on commit addc6ae

Please sign in to comment.