OSDN Git Service

* Fixed: Error when displaying the issue list if a float custom field is marked as...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 21 Nov 2007 18:45:18 +0000 (18:45 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 21 Nov 2007 18:45:18 +0000 (18:45 +0000)
* Fixed: Mercurial adapter breaks on missing :files entry in changeset hash (James Britt)
* Fixed: Wrong feed URLs on the home page

git-svn-id: http://redmine.rubyforge.org/svn/trunk@921 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/query.rb
app/views/welcome/index.rhtml
lib/redmine/scm/adapters/mercurial_adapter.rb

index f869f64..4cc5a63 100644 (file)
@@ -164,8 +164,6 @@ class Query < ActiveRecord::Base
       end
       @project.all_custom_fields.select(&:is_filter?).each do |field|
         case field.field_format
-        when "string", "int"
-          options = { :type => :string, :order => 20 }
         when "text"
           options = { :type => :text, :order => 20 }
         when "list"
@@ -174,6 +172,8 @@ class Query < ActiveRecord::Base
           options = { :type => :date, :order => 20 }
         when "bool"
           options = { :type => :list, :values => [[l(:general_text_yes), "1"], [l(:general_text_no), "0"]], :order => 20 }
+        else
+          options = { :type => :string, :order => 20 }
         end          
         @available_filters["cf_#{field.id}"] = options.merge({ :name => field.name })
       end
index af09eea..d1e871c 100644 (file)
@@ -26,6 +26,5 @@
 </div> 
 
 <% content_for :header_tags do %>
-<%= auto_discovery_link_tag(:rss,  {:controller => 'feeds', :action => 'news', :key => @key}, {:title => l(:label_news_latest)}) %>
-<%= auto_discovery_link_tag(:atom, {:controller => 'feeds', :action => 'news', :key => @key, :format => 'atom'}, {:title => l(:label_news_latest)}) %>
+<%= auto_discovery_link_tag(:atom, {:controller => 'news', :action => 'index', :key => User.current.rss_key, :format => 'atom'}, {:title => l(:label_news_latest)}) %>
 <% end %>
index 54fa8c4..a631916 100644 (file)
@@ -91,7 +91,7 @@ module Redmine
                                              :author => changeset[:user],
                                              :time => Time.parse(changeset[:date]),
                                              :message => changeset[:description],
-                                             :paths => changeset[:files].split.collect{|path| {:action => 'X', :path => "/#{path}"}}
+                                             :paths => changeset[:files].to_s.split.collect{|path| {:action => 'X', :path => "/#{path}"}}
                   })
                   changeset = {}
                 end