May 03, 2018
May 25, 2018
CMS UI
Closed, Duplicate
Steps to reproduce in Alloy Site
1. Change Buttonblock to use [RequiredCustom] attribute.
2. Recompile.
3. In editmode, create a new buttonblock.
4. Publish it right away,
5. Get a validation warning.
6. Enter some text to ButtonText and try to publish again.
7. The publish button is gone.
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, AllowMultiple = false)]
public class RequiredCustomAttribute : ValidationAttribute
{
/// <summary>
/// Gets or sets a flag indicating whether the attribute should allow empty strings.
/// </summary>
public bool AllowEmptyStrings
[Display(Order = 2, GroupName = SystemTabNames.Content)]
[RequiredCustom]
public virtual Url ButtonLink
}
* Please see Zendesk Support tab for further comments and attachments.