@@ -8,7 +8,7 @@ class OrganizationsController < ApplicationController
8
8
skip_authorization_check only : %i[ index new ]
9
9
10
10
def index
11
- ordering = 'hidden, LOWER(name )'
11
+ ordering = 'hidden, LOWER(title )'
12
12
@organizations = Organization
13
13
. accepted_organizations
14
14
. order ( ordering )
@@ -29,7 +29,7 @@ def index
29
29
30
30
def show
31
31
add_organization_breadcrumb
32
- ordering = 'hidden, disabled_status, LOWER(courses.name )'
32
+ ordering = 'hidden, disabled_status, LOWER(courses.title )'
33
33
@my_courses = Course . participated_courses ( current_user , @organization ) . order ( ordering ) . select { |c | c . visible_to? ( current_user ) }
34
34
@my_assisted_courses = Course . assisted_courses ( current_user , @organization ) . order ( ordering ) . select { |c | c . visible_to? ( current_user ) }
35
35
@ongoing_courses = @organization
@@ -55,7 +55,7 @@ def all_courses
55
55
return respond_access_denied ( 'Submissions for this exercise are no longer accepted.' ) unless current_user . administrator?
56
56
add_organization_breadcrumb
57
57
add_breadcrumb 'All Courses'
58
- ordering = 'hidden, disabled_status, LOWER(courses.name )'
58
+ ordering = 'hidden, disabled_status, LOWER(courses.title )'
59
59
@my_courses = Course . participated_courses ( current_user , @organization ) . order ( ordering ) . select { |c | c . visible_to? ( current_user ) }
60
60
@my_assisted_courses = Course . assisted_courses ( current_user , @organization ) . order ( ordering ) . select { |c | c . visible_to? ( current_user ) }
61
61
@ongoing_courses = @organization . courses . ongoing . order ( ordering ) . select { |c | c . visible_to? ( current_user ) }
0 commit comments