Closed tacid closed 10 years ago
сhange parse_sort_param has to check for db_sort_field.empty? not just db_sort_field
parse_sort_param
db_sort_field.empty?
db_sort_field
db_sort_field is String (.to_s), so if we want condition to has any sense we should to check for empty? string, because any String (even "") will evaluate as true.
empty?
сhange
parse_sort_param
has to check fordb_sort_field.empty?
not justdb_sort_field
db_sort_field
is String (.to_s), so if we want condition to has any sense we should to check forempty?
string, because any String (even "") will evaluate as true.