diff options
| author | jpl | 2017-03-23 14:48:36 +0100 |
|---|---|---|
| committer | jpl | 2017-03-23 14:48:45 +0100 |
| commit | c8ad494d5b139e6b50881e17896c46bcf27b50eb (patch) | |
| tree | bb608ec2df45ae8afcfcc86a3017a709ba20a05a /app/controllers/lines_controller.rb | |
| parent | 5d1ed5b589b2175b805e5cb0217382ebfc8a6b36 (diff) | |
| download | chouette-core-c8ad494d5b139e6b50881e17896c46bcf27b50eb.tar.bz2 | |
Refs #2919: fix ordering on networks.name
Diffstat (limited to 'app/controllers/lines_controller.rb')
| -rw-r--r-- | app/controllers/lines_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/lines_controller.rb b/app/controllers/lines_controller.rb index 1f5478eff..7eedaeb05 100644 --- a/app/controllers/lines_controller.rb +++ b/app/controllers/lines_controller.rb @@ -92,7 +92,7 @@ class LinesController < BreadcrumbController private def sort_column - (Chouette::Line.column_names + ['companies.name']).include?(params[:sort]) ? params[:sort] : 'number' + (Chouette::Line.column_names + ['companies.name', 'networks.name']).include?(params[:sort]) ? params[:sort] : 'number' end def sort_direction %w[asc desc].include?(params[:direction]) ? params[:direction] : 'asc' |
