Actualiza a Redmine 3.4.13
This commit is contained in:
parent
807ff3308d
commit
ecddcaf1d3
224 changed files with 2222 additions and 1000 deletions
|
@ -45,7 +45,7 @@ class Version < ActiveRecord::Base
|
|||
scope :like, lambda {|arg|
|
||||
if arg.present?
|
||||
pattern = "%#{arg.to_s.strip}%"
|
||||
where("LOWER(#{Version.table_name}.name) LIKE :p", :p => pattern)
|
||||
where([Redmine::Database.like("#{Version.table_name}.name", '?'), pattern])
|
||||
end
|
||||
}
|
||||
scope :open, lambda { where(:status => 'open') }
|
||||
|
@ -268,7 +268,7 @@ class Version < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def deletable?
|
||||
fixed_issues.empty? && !referenced_by_a_custom_field?
|
||||
fixed_issues.empty? && !referenced_by_a_custom_field? && attachments.empty?
|
||||
end
|
||||
|
||||
def default_project_version
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue