Commit 13b801be authored by Kaspar Vollenweider's avatar Kaspar Vollenweider

fix journal created with journal.user = volunteer.user which results in an invalid record

parent 7d6b919b
Pipeline #39369 passed with stage
in 37 minutes and 45 seconds
......@@ -46,7 +46,7 @@ class ReviewSemestersController < ApplicationController
return unless spv.commited_at?
volunteer = spv.volunteer
semester_feedbacks = spv.semester_feedbacks
Journal.create(user: volunteer.user, journalable: volunteer,
Journal.create(user: current_user, journalable: volunteer,
category: :feedback, title: "Semester Prozess Feedback vom #{I18n.l(Time.zone.today)}: ",
body: render_semester_feedbacks(semester_feedbacks))
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment