OSDN Git Service
(root)
/
redminele
/
redmine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35321d9
)
Prevent "can't convert nil into String" error when :sort_order param is not present.
author
Jean-Philippe Lang
<jp_lang@yahoo.fr>
Sat, 3 May 2008 15:09:06 +0000
(15:09 +0000)
committer
Jean-Philippe Lang
<jp_lang@yahoo.fr>
Sat, 3 May 2008 15:09:06 +0000
(15:09 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1410
e93f8b46
-1217-0410-a6f0-
8f06a7374b81
app/helpers/sort_helper.rb
patch
|
blob
|
history
diff --git
a/app/helpers/sort_helper.rb
b/app/helpers/sort_helper.rb
index
f16ff3c
..
9ca5c11
100644
(file)
--- a/
app/helpers/sort_helper.rb
+++ b/
app/helpers/sort_helper.rb
@@
-83,7
+83,7
@@
module SortHelper
# Use this to sort the controller's table items collection.
#
def sort_clause()
- session[@sort_name][:key] + ' ' +
session[@sort_name][:order]
+ session[@sort_name][:key] + ' ' +
(session[@sort_name][:order] || 'ASC')
end
# Returns a link which sorts by the named column.