Commit 76d33101 authored by Beat Seeliger's avatar Beat Seeliger

Merge branch 'fixes/broken-links' into 'develop'

Broken links in edit and new path

See merge request !906
parents 86c0c04b ce1b8a6b
Pipeline #33222 passed with stage
in 51 minutes and 44 seconds
......@@ -22,6 +22,14 @@ module MissionEitherOneRelation
group_assignment || assignment
end
def mission_url
if mission.is_a? GroupAssignment
Rails.application.routes.url_helpers::edit_group_assignment_url(mission, only_path: true)
else
mission
end
end
private
def validate_group_assignment_or_assignment_present
......
......@@ -29,7 +29,7 @@
td.index-action-cell
= fv.hidden_field :volunteer_id
- fv.object.semester_process_volunteer_missions.each do |mission|
= link_to mission.mission.to_label, mission.mission
= link_to mission.mission.to_label, mission.mission_url
td= l(fv.object.volunteer.accepted_at.to_date) if fv.object.volunteer.accepted_at
.row:.col-xs-12
......
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