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 | 29 | |
| 30 | 30 | def create_event(record, status) |
| 31 | 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 | 38 | end |
| 39 | 39 | end | ... | ... |