Jump to content

Pages::saved hook called even when failure


bmacnaughton
 Share

Recommended Posts

I have a hook that creates a page for a subset of the pages on our site. It uses the saved page's name as part of the created page's name.

The problem I am having is that my hook, attached to Pages::saved(), is being called even when the page save failed because of missing fields. Is there a way I can tell that the page save failed due to missing fields?

 

Never mind - it does succeed; it just issues warnings about required fields.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...