- Added new config entris for messaging: ou_receivers_no_notice and ou_receivers_private

- MessageLib:
	- Renamed method sendAllNotices to sendAllEmailNotices
	- Renamed method _sendOneNotice to _sendNoticeEmails
	- Renamed method _sendNotice to _sendNoticeEmail
	- If the recipient contact is empty is not anymore a blocking error
- Recipient_model->getMessageById renamed to getMessagesById, not it accepts an array of message ids, could return more results
- Fixed bug in public/js/messaging/writeReply.js to send subject value
This commit is contained in:
Paolo
2020-02-17 18:29:07 +01:00
parent 11f3fad1f7
commit b94aad14fb
5 changed files with 151 additions and 141 deletions
@@ -422,7 +422,7 @@ class Recipient_model extends DB_Model
/**
*
*/
public function getMessageById($message_id)
public function getMessagesById($messageIds)
{
$sql = 'SELECT mm.message_id,
mm.person_id AS sender_id,
@@ -437,8 +437,8 @@ class Recipient_model extends DB_Model
mr.oe_kurzbz AS receiver_ou
FROM public.tbl_msg_message mm
JOIN public.tbl_msg_recipient mr ON (mr.message_id = mm.message_id)
WHERE mm.message_id = ?';
WHERE mm.message_id IN ?';
return $this->execQuery($sql, array($message_id));
return $this->execQuery($sql, array($messageIds));
}
}