]> source.dussan.org Git - redmine.git/commitdiff
Fixed syntax for ruby1.8.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 9 Dec 2012 18:46:02 +0000 (18:46 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 9 Dec 2012 18:46:02 +0000 (18:46 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10969 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/query.rb

index 814d1184601da333fffe34414e4738777525d3d2..ff7758c71d67dc7ddcd68c2279f7146b859f76df 100644 (file)
@@ -120,7 +120,7 @@ class Query < ActiveRecord::Base
     "ld"  => :label_yesterday,
     "w"   => :label_this_week,
     "lw"  => :label_last_week,
-    "l2w" => [:label_last_n_weeks, :count => 2],
+    "l2w" => [:label_last_n_weeks, {:count => 2}],
     "m"   => :label_this_month,
     "lm"  => :label_last_month,
     "y"   => :label_this_year,