Project

General

Profile

« Previous | Next » 

Revision 921

  • Fixed: Error when displaying the issue list if a float custom field is marked as 'used as filter'
  • Fixed: Mercurial adapter breaks on missing :files entry in changeset hash (James Britt)
  • Fixed: Wrong feed URLs on the home page

View differences:

trunk/app/models/query.rb
164 164
      end
165 165
      @project.all_custom_fields.select(&:is_filter?).each do |field|
166 166
        case field.field_format
167
        when "string", "int"
168
          options = { :type => :string, :order => 20 }
169 167
        when "text"
170 168
          options = { :type => :text, :order => 20 }
171 169
        when "list"
......
174 172
          options = { :type => :date, :order => 20 }
175 173
        when "bool"
176 174
          options = { :type => :list, :values => [[l(:general_text_yes), "1"], [l(:general_text_no), "0"]], :order => 20 }
175
        else
176
          options = { :type => :string, :order => 20 }
177 177
        end          
178 178
        @available_filters["cf_#{field.id}"] = options.merge({ :name => field.name })
179 179
      end
trunk/app/views/welcome/index.rhtml
26 26
</div>	
27 27

  
28 28
<% content_for :header_tags do %>
29
<%= auto_discovery_link_tag(:rss,  {:controller => 'feeds', :action => 'news', :key => @key}, {:title => l(:label_news_latest)}) %>
30
<%= auto_discovery_link_tag(:atom, {:controller => 'feeds', :action => 'news', :key => @key, :format => 'atom'}, {:title => l(:label_news_latest)}) %>
29
<%= auto_discovery_link_tag(:atom, {:controller => 'news', :action => 'index', :key => User.current.rss_key, :format => 'atom'}, {:title => l(:label_news_latest)}) %>
31 30
<% end %>
trunk/lib/redmine/scm/adapters/mercurial_adapter.rb
91 91
                                             :author => changeset[:user],
92 92
                                             :time => Time.parse(changeset[:date]),
93 93
                                             :message => changeset[:description],
94
                                             :paths => changeset[:files].split.collect{|path| {:action => 'X', :path => "/#{path}"}}
94
                                             :paths => changeset[:files].to_s.split.collect{|path| {:action => 'X', :path => "/#{path}"}}
95 95
                  })
96 96
                  changeset = {}
97 97
                end

Also available in: Unified diff