Hi there
We recently purchased NSM plugin for a project.
We are having problems with the save draft functionality. If we save a draft with changes, for instance it was draft 10 and then load up draft 9 without the changes then load up draft 10 again the changes are not there and lost.
Also when you save a draft with changes and go to another section on the CMS and go back to edit the article all changes in the draft are lost again.
And all drafts are exactly the same, if you save a revision it overwrites every draft!
Am I missing something here? Because it’s either a massive oversight by me or the drafts aren’t working at all.
Just a small of an outline of the site, we are running multi-site manager running 4.
We are desperate to sort this as our client is very frustrated.
Jonny
I figured this out. I had incorrectly applied the core hack. I had
if (is_numeric($version_id))
{
$entry_id = $IN->GBL('entry_id');
$revquery = $DB->query("SELECT version_data FROM exp_entry_versioning WHERE entry_id = '{$entry_id}' AND version_id = '{$version_id}'");
if ($revquery->num_rows == 1)
{
$_POST = $REGX->array_stripslashes(@unserialize($revquery->row['version_data']));
$_POST['entry_id'] = $entry_id;
$which = 'preview';
}
unset($revquery);
if (is_numeric($IN->GBL("draft_id")))
{
$which = 'preview';
}It should be
if (is_numeric($version_id))
{
$entry_id = $IN->GBL('entry_id');
$revquery = $DB->query("SELECT version_data FROM exp_entry_versioning WHERE entry_id = '{$entry_id}' AND version_id = '{$version_id}'");
if ($revquery->num_rows == 1)
{
$_POST = $REGX->array_stripslashes(@unserialize($revquery->row['version_data']));
$_POST['entry_id'] = $entry_id;
$which = 'preview';
}
unset($revquery);
}
if (is_numeric($IN->GBL("draft_id")))
{
$which = 'preview';
}Make sure your brackets close before where you paste in the core hack.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.