Commit f989140b7730b592e0751a12f815808908cfcff1
1 parent
c17280f5
Exists in
master
and in
4 other branches
Fixed bug with invalid event author
Showing
1 changed file
with
5 additions
and
5 deletions
Show diff stats
app/observers/activity_observer.rb
| @@ -29,11 +29,11 @@ class ActivityObserver < BaseObserver | @@ -29,11 +29,11 @@ class ActivityObserver < BaseObserver | ||
| 29 | 29 | ||
| 30 | def create_event(record, status) | 30 | def create_event(record, status) |
| 31 | Event.create( | 31 | Event.create( |
| 32 | - project: record.project, | ||
| 33 | - target_id: record.id, | ||
| 34 | - target_type: record.class.name, | ||
| 35 | - action: status, | ||
| 36 | - author_id: record.author_id | 32 | + project: record.project, |
| 33 | + target_id: record.id, | ||
| 34 | + target_type: record.class.name, | ||
| 35 | + action: status, | ||
| 36 | + author_id: current_user | ||
| 37 | ) | 37 | ) |
| 38 | end | 38 | end |
| 39 | end | 39 | end |