Redmine 4.1.1

This commit is contained in:
Manuel Cillero 2020-11-22 21:20:06 +01:00
parent 33e7b881a5
commit 3d976f1b3b
1593 changed files with 36180 additions and 19489 deletions

View file

@ -1,5 +1,5 @@
# encoding: utf-8
#
# frozen_string_literal: true
# Helpers to sort tables using clickable column headers.
#
# Author: Stuart Rackham <srackham@methods.co.nz>, March 2005.
@ -96,7 +96,7 @@ module SortHelper
# Returns an SQL sort clause corresponding to the current sort state.
# Use this to sort the controller's table items collection.
#
def sort_clause()
def sort_clause
@sort_criteria.sort_clause(@sortable_columns)
end
@ -115,10 +115,10 @@ module SortHelper
if column.to_s == @sort_criteria.first_key
if @sort_criteria.first_asc?
css = 'sort asc'
css = 'sort asc icon icon-sorted-desc'
order = 'desc'
else
css = 'sort desc'
css = 'sort desc icon icon-sorted-asc'
order = 'asc'
end
end
@ -160,4 +160,3 @@ module SortHelper
end
end
end