FAS page to read messages wrongly displays the sender

This commit is contained in:
Paolo
2023-04-19 15:15:23 +02:00
parent a0b368683e
commit 29c91a1cda
3 changed files with 194 additions and 53 deletions
+18 -1
View File
@@ -1,4 +1,20 @@
<?php
/**
* Copyright (C) 2023 fhcomplete.org
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
class Recipient_model extends DB_Model
{
@@ -335,7 +351,8 @@ class Recipient_model extends DB_Model
*/
private function _getSentMessagesQuery()
{
return 'SELECT mm.message_id,
return '-- Messages sent from the given person
SELECT mm.message_id,
mm.relationmessage_id,
mm.subject,
mm.body,