From: Joshua Rüsweg Date: Sun, 6 Aug 2017 11:15:47 +0000 (+0200) Subject: Improve hidden column for modification log entries X-Git-Tag: 3.1.0_Alpha_1~76 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2a6e41590a3c78ce320e58ecd1cc617b65bceca0;p=GitHub%2FWoltLab%2FWCF.git Improve hidden column for modification log entries --- diff --git a/wcfsetup/install/files/lib/system/log/modification/AbstractModificationLogHandler.class.php b/wcfsetup/install/files/lib/system/log/modification/AbstractModificationLogHandler.class.php index ab49e4f6c2..c878c4e34f 100644 --- a/wcfsetup/install/files/lib/system/log/modification/AbstractModificationLogHandler.class.php +++ b/wcfsetup/install/files/lib/system/log/modification/AbstractModificationLogHandler.class.php @@ -52,9 +52,10 @@ abstract class AbstractModificationLogHandler extends SingletonFactory { * @param integer $time * @param integer|null $userID * @param string|null $username + * @param integer $hidden * @return ModificationLog */ - public function createLog($action, $objectID, $parentObjectID = null, array $additionalData = [], $time = TIME_NOW, $userID = null, $username = null) { + public function createLog($action, $objectID, $parentObjectID = null, array $additionalData = [], $time = TIME_NOW, $userID = null, $username = null, $hidden = 1) { // set default user data if ($userID === null) { if (WCF::getUser()->userID) { @@ -82,6 +83,7 @@ abstract class AbstractModificationLogHandler extends SingletonFactory { 'userID' => $userID, 'username' => $username, 'time' => $time, + 'hidden' => $hidden, 'additionalData' => serialize($additionalData) ] ]); diff --git a/wcfsetup/setup/db/install.sql b/wcfsetup/setup/db/install.sql index 33485d48b5..a752dd6f5d 100644 --- a/wcfsetup/setup/db/install.sql +++ b/wcfsetup/setup/db/install.sql @@ -774,7 +774,7 @@ CREATE TABLE wcf1_modification_log ( username VARCHAR(255) NOT NULL DEFAULT '', time INT(10) NOT NULL DEFAULT 0, action VARCHAR(80) NOT NULL, - hidden TINYINT(1) NOT NULL DEFAULT 0, + hidden TINYINT(1) NOT NULL DEFAULT 1, additionalData MEDIUMTEXT, KEY objectTypeAndID (objectTypeID, objectID)