Skip to content

Commit

Permalink
Merge pull request #5189 from dodona-edu/fix/course-years
Browse files Browse the repository at this point in the history
Add year to course name in saved annotations filter
  • Loading branch information
jorg-vr authored Nov 21, 2023
2 parents 2dc06cd + 4cd912c commit 0b4105a
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.formatted_year})"}}.to_json %>,
color: function () {
return "orange";
}
Expand Down

0 comments on commit 0b4105a

Please sign in to comment.