myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [1861] trunk/app/helpers/application_helper.rb: T


From: noreply
Subject: [myexperiment-hackers] [1861] trunk/app/helpers/application_helper.rb: Temporary fix for the case when there's no title (eg on Files).
Date: Wed, 15 Oct 2008 05:53:22 -0400 (EDT)

Revision
1861
Author
dtm
Date
2008-10-15 05:53:22 -0400 (Wed, 15 Oct 2008)

Log Message

Temporary fix for the case when there's no title (eg on Files).

Modified Paths

Diff

Modified: trunk/app/helpers/application_helper.rb (1860 => 1861)


--- trunk/app/helpers/application_helper.rb	2008-10-15 09:46:40 UTC (rev 1860)
+++ trunk/app/helpers/application_helper.rb	2008-10-15 09:53:22 UTC (rev 1861)
@@ -318,7 +318,7 @@
     if sort
       rtn.each do |k, v|
         v.sort! { |a, b|
-          a.title.downcase <=> b.title.downcase
+          at=a.title||""; bt=b.title||""; at.downcase <=> bt.downcase
         }
       end
     end

reply via email to

[Prev in Thread] Current Thread [Next in Thread]