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(}: ",
body: render_semester_feedbacks(semester_feedbacks))
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment