mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-11 05:05:21 +00:00
remove spaces inside {} of app/models/issue.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19889 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
f3f333a906
commit
258ba9b88b
@ -49,7 +49,7 @@ class Issue < ActiveRecord::Base
|
||||
|
||||
acts_as_event :title => Proc.new {|o| "#{o.tracker.name} ##{o.id} (#{o.status}): #{o.subject}"},
|
||||
:url => Proc.new {|o| {:controller => 'issues', :action => 'show', :id => o.id}},
|
||||
:type => Proc.new {|o| 'issue' + (o.closed? ? '-closed' : '') }
|
||||
:type => Proc.new {|o| 'issue' + (o.closed? ? '-closed' : '')}
|
||||
|
||||
acts_as_activity_provider :scope => preload(:project, :author, :tracker, :status),
|
||||
:author_key => :author_id
|
||||
@ -83,7 +83,7 @@ class Issue < ActiveRecord::Base
|
||||
where(:issue_statuses => {:is_closed => is_closed})
|
||||
}
|
||||
|
||||
scope :recently_updated, lambda { order(:updated_on => :desc) }
|
||||
scope :recently_updated, lambda {order(:updated_on => :desc)}
|
||||
scope :on_active_project, lambda {
|
||||
joins(:project).
|
||||
where(:projects => {:status => Project::STATUS_ACTIVE})
|
||||
@ -778,7 +778,7 @@ class Issue < ActiveRecord::Base
|
||||
required_attribute_names(user).each do |attribute|
|
||||
if /^\d+$/.match?(attribute)
|
||||
attribute = attribute.to_i
|
||||
v = custom_field_values.detect {|v| v.custom_field_id == attribute }
|
||||
v = custom_field_values.detect {|v| v.custom_field_id == attribute}
|
||||
if v && Array(v.value).detect(&:present?).nil?
|
||||
errors.add :base, v.custom_field.name + ' ' + l('activerecord.errors.messages.blank')
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user