diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-11-21 18:45:18 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-11-21 18:45:18 +0000 |
commit | 5e6fa147da47a4b1e17b0d39567b8ab7641b1a8c (patch) | |
tree | ad53a12d428e789ac73c0c5a060c7091fce34fd3 /app | |
parent | 8d91afc33e3b5e7ef491fb30fb5ccbda35a1d02d (diff) | |
download | redmine-5e6fa147da47a4b1e17b0d39567b8ab7641b1a8c.tar.gz redmine-5e6fa147da47a4b1e17b0d39567b8ab7641b1a8c.zip |
* 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
git-svn-id: http://redmine.rubyforge.org/svn/trunk@921 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/models/query.rb | 4 | ||||
-rw-r--r-- | app/views/welcome/index.rhtml | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/app/models/query.rb b/app/models/query.rb index f869f648b..4cc5a63a5 100644 --- a/app/models/query.rb +++ b/app/models/query.rb @@ -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 diff --git a/app/views/welcome/index.rhtml b/app/views/welcome/index.rhtml index af09eea93..d1e871c4a 100644 --- a/app/views/welcome/index.rhtml +++ b/app/views/welcome/index.rhtml @@ -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 %> |