issue id bug, readme

This commit is contained in:
yanxd 2014-06-27 08:36:45 +08:00
parent 85c99d6abe
commit a9aae59b28
2 changed files with 6 additions and 2 deletions

View File

@ -54,4 +54,8 @@ bundle exec rake db:migrate:up VERSION=20140410021724
================================================================================
0626新坑 journal_replies 无法删除问题
journal_replies表没有主键在对User调用destroy方法时候rails默认调用查找id删除的方法journal_replies没有id字段导致删除失败
journal_replies表没有主键在对User调用destroy方法时候rails默认调用查找id删除的方法journal_replies没有id字段导致删除失败
================================================================================
首页:我要提问 我要反馈两个链接
依次对应 新手讨论 网站建议 两个论坛的发帖,没有建立论坛就返回首页

View File

@ -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