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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
4caf802d
Commit
4caf802d
authored
Mar 29, 2017
by
http://jneen.net/
Committed by
Felipe Artur
Apr 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix silly errors in EE::NotificationService
parent
8fe28cae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
app/services/ee/notification_service.rb
app/services/ee/notification_service.rb
+7
-6
No files found.
app/services/ee/notification_service.rb
View file @
4caf802d
...
...
@@ -9,14 +9,15 @@ module EE
end
def
send_service_desk_notification
(
note
)
return
true
unless
Gitlab
::
EE
::
ServiceDesk
.
enabled?
return
true
unless
note
.
noteable_type
==
'Issue'
issue
=
note
.
issuable
return
unless
::
Gitlab
::
EE
::
ServiceDesk
.
enabled?
return
unless
note
.
noteable_type
==
'Issue'
issue
=
note
.
noteable
reply_to
=
issue
.
service_desk_reply_to
return
nil
unless
issue
.
service_desk_reply_to
.
present?
return
nil
unless
issue
.
project
.
service_desk_enabled?
return
nil
unless
issue
.
subscribed?
(
user
,
issue
.
project
)
return
unless
issue
.
service_desk_reply_to
.
present?
return
unless
issue
.
project
.
service_desk_enabled?
return
unless
issue
.
subscribed?
(
::
User
.
support_bot
,
issue
.
project
)
Notify
.
service_desk_new_note_email
(
issue
.
id
,
note
.
id
)
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