Deleted or un-approved? I can't see how a delete would take place as a dm->save() is called.
I also can't see how the mod might accidentally choose "purge" instead since there is a bug in vBulletin 3 where calling purge only executes a rollback.
$db->query_write("
DELETE FROM " . TABLE_PREFIX . "vault_revision
WHERE revisionid = " . intval($revision['revisionid']) . "
");
$rolldata->save();
Replace with:
Code:
$rolldata->save();
This DELETE query was originally here because the approval process created a new edit with the same information, so the old unapproved version needed to be removed. However, a few versions back we optimized this using a flag to tell the DM to use an UPDATE instead of an INSERT. It seems we forgot to remove the DELETE when we made that change.
This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.