From db73637fc0074013d0d5dd950ce6e9b3000fdd11 Mon Sep 17 00:00:00 2001 From: jorg-vr Date: Tue, 21 Nov 2023 10:23:53 +0100 Subject: [PATCH] Add year besides coursname in filter --- app/views/layouts/_searchbar.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/layouts/_searchbar.html.erb b/app/views/layouts/_searchbar.html.erb index 4a5c4a7c75..b7bed4d37d 100644 --- a/app/views/layouts/_searchbar.html.erb +++ b/app/views/layouts/_searchbar.html.erb @@ -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"; }