Try our conversational search powered by Generative AI!

Custom validation with IValidate<T> prevents to create a page if validation doesn’t allow empty property

Found in

Release CMS Core 7.13

Created

Aug 19, 2014

Updated

Oct 08, 2014

Area

Falcon/CMS/Edit UI

State

Closed, Fixed and Tested


Steps to reproduce

DI-142224

Custom validations implemented with IValidate<T> interface prevents a page to be created if validation doesn’t allow a property to be empty. Same steps applied with CMS 7.8.2 and 7.13 which ended up different results.

Steps to reproduce:

  1. Create Alloy Web project

  2. Create a validation class that implements IValidate<T> interface and validate the property is not empty (a sample class attached to the document)

  3. Create a new page with selected type “Standard” that IValidate<T> is implemented for.

  4. Nothing will happen since the validation will be triggered in the page creation process

  5. Same steps followed works with CMS 7.8.2 which creates a new page and validation prevents the page to be published with empty property