Firstly, this references an earlier post of mine where my delete
action was failing intermittently.

http://groups.google.com/group/cake-php/browse_thread/thread/d92ab3a051409d/1e22dcd81cec0c7a

Following advice from AD7six I added some log() calls and was able to
spot that around 50% of the time when calling my delete action it
repeats the action twice.  I'm seeing an error message as the first
call successfully deletes the record then the second try fails as the
record is already deleted.

See my debug log entries for reference

Called once (fine)
2008-12-16 09:59:29 Debug: Delete action called for record # 6805
2008-12-16 09:59:29 Debug: errorFlash() did not find an issue
2008-12-16 09:59:29 Debug: Read data: parent_model = Organisation
2008-12-16 09:59:30 Debug: Deleted record

Called twice (error)
2008-12-16 09:59:41 Debug: Delete action called for record # 6813
2008-12-16 09:59:41 Debug: errorFlash() did not find an issue
2008-12-16 09:59:41 Debug: Read data: parent_model = Organisation
2008-12-16 09:59:41 Debug: Deleted record
2008-12-16 09:59:43 Debug: Delete action called for record # 6813
2008-12-16 09:59:43 Debug: errorFlash() found an issue

Anyone got any ideas why cake is calling the action twice?

P.S. I did write a message in the previous post and got no reply so
opening a new post with amended subject
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to