Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OLAT CI-CD Testing Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Oliver Dam
OLAT CI-CD Testing Project
Commits
b4d2c980
Commit
b4d2c980
authored
11 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
OO-511: add the distinct in the outbox query
parent
d525cdf6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/olat/core/util/mail/manager/MailManager.java
+1
-1
1 addition, 1 deletion
...ain/java/org/olat/core/util/mail/manager/MailManager.java
with
1 addition
and
1 deletion
src/main/java/org/olat/core/util/mail/manager/MailManager.java
+
1
−
1
View file @
b4d2c980
...
@@ -365,7 +365,7 @@ public class MailManager extends BasicManager {
...
@@ -365,7 +365,7 @@ public class MailManager extends BasicManager {
*/
*/
public
List
<
DBMail
>
getOutbox
(
Identity
from
,
int
firstResult
,
int
maxResults
)
{
public
List
<
DBMail
>
getOutbox
(
Identity
from
,
int
firstResult
,
int
maxResults
)
{
StringBuilder
sb
=
new
StringBuilder
();
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
"select mail from "
).
append
(
DBMailImpl
.
class
.
getName
()).
append
(
" mail"
)
sb
.
append
(
"select
distinct(
mail
)
from "
).
append
(
DBMailImpl
.
class
.
getName
()).
append
(
" mail"
)
.
append
(
" inner join fetch mail.from fromRecipient"
)
.
append
(
" inner join fetch mail.from fromRecipient"
)
.
append
(
" inner join fromRecipient.recipient fromRecipientIdentity"
)
.
append
(
" inner join fromRecipient.recipient fromRecipientIdentity"
)
.
append
(
" inner join fetch mail.recipients recipient"
)
.
append
(
" inner join fetch mail.recipients recipient"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment