From d2b4c931c7fe28cc490100f746ae9364f235cebd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 6 Oct 2017 00:43:07 +0200 Subject: [PATCH] Fix bulk revert of edit history --- .../install/files/lib/system/edit/EditHistoryManager.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wcfsetup/install/files/lib/system/edit/EditHistoryManager.class.php b/wcfsetup/install/files/lib/system/edit/EditHistoryManager.class.php index b6787987bf..77792bdea7 100644 --- a/wcfsetup/install/files/lib/system/edit/EditHistoryManager.class.php +++ b/wcfsetup/install/files/lib/system/edit/EditHistoryManager.class.php @@ -121,6 +121,7 @@ class EditHistoryManager extends SingletonFactory { WHERE revertTo.objectID = vandalizedEntries2.objectID AND revertTo.objectTypeID = vandalizedEntries2.objectTypeID AND ( revertTo.obsoletedAt <= ? + OR revertTo.time <= ? OR revertTo.userID NOT IN(".$userIDPlaceholders.")) GROUP BY revertTo.objectTypeID, revertTo.objectID"; $statement = WCF::getDB()->prepareStatement($sql); @@ -128,6 +129,7 @@ class EditHistoryManager extends SingletonFactory { [TIME_NOW - $timeframe], $userIDs, [TIME_NOW - $timeframe], + [TIME_NOW - $timeframe], $userIDs )); -- 2.20.1