Skip to content

Commit

Permalink
Add year besides coursname in filter
Browse files Browse the repository at this point in the history
  • Loading branch information
jorg-vr committed Nov 21, 2023
1 parent 2dc06cd commit db73637
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/layouts/_searchbar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
return course.id.toString();
},
multi: false,
data: <%= raw local_assigns.fetch(:courses, []).map{|course| {id: course.id, name: course.name}}.to_json %>,
data: <%= raw local_assigns.fetch(:courses, []).map{|course| {id: course.id, name: "#{course.name} (#{course.year})"}}.to_json %>,
color: function () {
return "orange";
}
Expand Down

0 comments on commit db73637

Please sign in to comment.