Commit 2d17f77d authored by Chrysanthi Lagodimou's avatar Chrysanthi Lagodimou

Do not print hr for empty column

parent b381d87c
Pipeline #31839 passed with stage
in 38 minutes and 19 seconds
......@@ -67,7 +67,11 @@ class SemesterProcessVolunteer < ApplicationRecord
end
def render_feedback(field)
semester_feedbacks.map(&field).compact.join('<hr>').html_safe
size = 0
semester_feedbacks.each do |f|
size += f[field].size
end
semester_feedbacks.map(&field).compact.join('<hr>').html_safe if size != 0
end
def responsible=(responsible_user)
......
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