1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-10-31 14:10:08 +00:00

Fix username of revoker in ChatSuspensionListPage

This commit is contained in:
Tim Düsterhus 2013-10-16 17:53:29 +02:00
parent 365a6da278
commit 00e637397c

View File

@ -140,14 +140,14 @@ public function assignVariables() {
protected function initObjectList() { protected function initObjectList() {
parent::initObjectList(); parent::initObjectList();
$this->objectList->sqlSelects .= "user_table.username, user_table2.username AS issuerUsername, user_table3.username AS revokerUsername, room_table.title AS roomTitle"; $this->objectList->sqlSelects .= "user_table_muted.username, user_table_issuer.username AS issuerUsername, user_table_revoker.username AS revokerUsername, room_table.title AS roomTitle";
$this->objectList->sqlJoins .= " $this->objectList->sqlJoins .= "
LEFT JOIN wcf".WCF_N."_user user_table LEFT JOIN wcf".WCF_N."_user user_table_muted
ON suspension.userID = user_table.userID ON suspension.userID = user_table_muted.userID
LEFT JOIN wcf".WCF_N."_user user_table2 LEFT JOIN wcf".WCF_N."_user user_table_issuer
ON suspension.issuer = user_table2.userID ON suspension.issuer = user_table_issuer.userID
LEFT JOIN wcf".WCF_N."_user user_table3 LEFT JOIN wcf".WCF_N."_user user_table_revoker
ON suspension.issuer = user_table3.userID"; ON suspension.revoker = user_table_revoker.userID";
$conditionJoins = " LEFT JOIN chat".WCF_N."_room room_table $conditionJoins = " LEFT JOIN chat".WCF_N."_room room_table
ON suspension.roomID = room_table.roomID"; ON suspension.roomID = room_table.roomID";
$this->objectList->sqlConditionJoins .= $conditionJoins; $this->objectList->sqlConditionJoins .= $conditionJoins;