Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
11d52a15
Commit
11d52a15
authored
Mar 27, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix NotificationService reassign_email method
parent
2b2d43ed
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/services/notification_service.rb
app/services/notification_service.rb
+2
-2
No files found.
app/services/notification_service.rb
View file @
11d52a15
...
@@ -127,7 +127,7 @@ class NotificationService
...
@@ -127,7 +127,7 @@ class NotificationService
end
end
end
end
def
reassign_email
(
target
,
current_user
,
entity_sym
)
def
reassign_email
(
target
,
current_user
,
method
)
recipients
=
User
.
where
(
id:
[
target
.
assignee_id
,
target
.
assignee_id_was
])
recipients
=
User
.
where
(
id:
[
target
.
assignee_id
,
target
.
assignee_id_was
])
# reject users with disabled notifications
# reject users with disabled notifications
...
@@ -136,7 +136,7 @@ class NotificationService
...
@@ -136,7 +136,7 @@ class NotificationService
# Reject me from recipients if I reassign an item
# Reject me from recipients if I reassign an item
recipients
.
delete
(
current_user
)
recipients
.
delete
(
current_user
)
recipients
.
each
do
|
recipient
_id
|
recipients
.
each
do
|
recipient
|
Notify
.
delay
.
send
(
method
,
recipient
.
id
,
target
.
id
,
target
.
assignee_id_was
)
Notify
.
delay
.
send
(
method
,
recipient
.
id
,
target
.
id
,
target
.
assignee_id_was
)
end
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment