Skip to content

Commit

Permalink
Mail/Lucene: Use 'ilias' as sender string for Lucene index if user id…
Browse files Browse the repository at this point in the history
… equals 13
  • Loading branch information
smeyer-ilias committed Apr 14, 2020
1 parent 79abd38 commit 5b40f92
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Services/Mail/LuceneDataSource.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<?xml version="1.0" ?>
<DataSource type="JDBC" action="create">
<Query>
SELECT 'mail' type, mail_id, user_id, login, folder_id, m_subject, m_message, rcp_to, rcp_cc, rcp_bcc
FROM mail LEFT JOIN
usr_data on sender_id = usr_id
SELECT 'mail' type, mail_id, user_id, folder_id, m_subject, m_message, rcp_to, rcp_cc, rcp_bcc,
(CASE WHEN user_id = 13 THEN 'ilias' ELSE login END) login
FROM mail LEFT
JOIN usr_data on sender_id = usr_id
WHERE user_id IN (?);
</Query>
<Param format="list" type="int" value="objId" />
Expand Down

0 comments on commit 5b40f92

Please sign in to comment.