We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

submit_new_entry_end not firing on quicksave?

Development and Programming

Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Hey guys,

This is one for the EE team or one of the many skilled develoeprs out there.

I think I have identified an issue that needs a little clarification + help. It seems that submit_new_entry_end doesn’t get called when you quicksave a new entry.

The docs hook description says “After an entry is submitted, do more processing” but this is not the case.

Any ideas on why this is or a work around?

Cheers Leevi

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

The docs say that this hook doesn’t return data so it isn’t possible that another extension might have used it right?…. Oh and I think I posted this in the wrong topic :(

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
17 years ago
Mark Bowen's avatar Mark Bowen

Hi Leevi,

I am probably going to be wrong on this one but I was wondering if it has anything to do with using Quicksave?

Perhaps the hook only gets called when you use the Update button?

Really just guessing though. Don’t know if that helps in narrowing it down some more?

Best wishes,

Mark

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Yeah that seems to be the issue.

But the docs are confusing: “After an entry is submitted, do more processing”

Maybe I will need to look into one of the other hooks :(

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
17 years ago
Mark Bowen's avatar Mark Bowen

Don’t take what I have said as word though. I could definitely be wrong but I am thinking it might be that. Do you have to have it work on update as opposed to Publish specifically?

Best wishes,

Mark

       
Erik Stainsby's avatar
Erik Stainsby
9 posts
17 years ago
Erik Stainsby's avatar Erik Stainsby

There is an error (I believe) in the placement of the Quick Save return call in cp.publish.php

The Quick Save “out” comes before any of the submit_new_entry_(end|redirect|absolute_end) hooks can be reached.

This effectively neuters any custom extensions in the publish cycle.

       
Tim Smith's avatar
Tim Smith
15 posts
16 years ago
Tim Smith's avatar Tim Smith

This is definitely true.

See also this thread

Raised as a bug here

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.