I noticed that in the drafts table, the drafts keep creating over and over, never reusing the same ID. The problem relies in two parts:
- I have the devel module activated, and it sometimes uses the register_shutdown function. So, AFTER a die() it will append some garbage (its statistics). It will break the module ajax handler
- the eval in the ajax callback is wrong; it should read eval(result.responseText); not eval(result); (or use the jQuery helpers for that)
Here is the code to add to the module, just at the beginning of the draft_save():
$GLOBALS['devel_shutdown'] = FALSE;
I'll check if the devel module has a way to not bad interact with ajax requests.
Comments
Comment #1
darren.ferguson commentedClaudio, yes i never use the devel module, hence that could be the reason.
I will append that patch to the draft save module now and put it in the contributions.
Have added at the begining of the module and put in reference what you told me. It will be in the nightly build tonight.
Respectfully,
Darren Ferguson
Comment #2
darren.ferguson commentedPatch has been applied to the module and i have put in the reference to this issue in the cvs commit message.
Respectfully,
Darren Ferguson