Fix "assign to a class" button on search result page

[#75865492]