From a9aae59b28b2b1bef06c36aee2a7cabf6dcb76a7 Mon Sep 17 00:00:00 2001 From: yanxd Date: Fri, 27 Jun 2014 08:36:45 +0800 Subject: [PATCH] issue id bug, readme --- ReadMe.txt | 6 +++++- app/models/issue.rb | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ReadMe.txt b/ReadMe.txt index c357bbad4..5fb0f8277 100644 --- a/ReadMe.txt +++ b/ReadMe.txt @@ -54,4 +54,8 @@ bundle exec rake db:migrate:up VERSION=20140410021724 ================================================================================ 0626:新坑 journal_replies 无法删除问题 -journal_replies表没有主键,在对User调用destroy方法时候,rails默认调用查找id删除的方法,journal_replies没有id字段,导致删除失败 \ No newline at end of file +journal_replies表没有主键,在对User调用destroy方法时候,rails默认调用查找id删除的方法,journal_replies没有id字段,导致删除失败 + +================================================================================ +首页:我要提问 我要反馈两个链接 +依次对应 新手讨论 网站建议 两个论坛的发帖,没有建立论坛就返回首页 \ No newline at end of file diff --git a/app/models/issue.rb b/app/models/issue.rb index 3cd67d017..481f3ab32 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -223,7 +223,7 @@ class Issue < ActiveRecord::Base end def to_param - @to_param ||= "#{id}_#{self.project.name}(#{self.project.issues.index(self).to_i+1}-#{self.project.issues.count})"#.parameterize + @to_param ||= "#{id} #{self.project.name}(#{self.project.issues.index(self).to_i+1}-#{self.project.issues.count})".parameterize end # Overrides Redmine::Acts::Customizable::InstanceMethods#available_custom_fields