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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
61833bcb
Commit
61833bcb
authored
Feb 01, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix app crash if author is missing
parent
cc2484c3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
app/observers/note_observer.rb
app/observers/note_observer.rb
+3
-1
No files found.
app/observers/note_observer.rb
View file @
61833bcb
...
@@ -11,7 +11,9 @@ class NoteObserver < ActiveRecord::Observer
...
@@ -11,7 +11,9 @@ class NoteObserver < ActiveRecord::Observer
notify_team
(
note
)
notify_team
(
note
)
elsif
note
.
notify_author
elsif
note
.
notify_author
# Notify only author of resource
# Notify only author of resource
if
note
.
commit_author
Notify
.
delay
.
note_commit_email
(
note
.
commit_author
.
id
,
note
.
id
)
Notify
.
delay
.
note_commit_email
(
note
.
commit_author
.
id
,
note
.
id
)
end
else
else
# Otherwise ignore it
# Otherwise ignore it
nil
nil
...
...
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