mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
Fix typo in error message when target version was not found (#28024).
Patch by Marius Žilėnas. git-svn-id: http://svn.redmine.org/redmine/trunk@17184 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
6da27c1da7
commit
93a09f05cc
@ -382,7 +382,7 @@ class Mailer < ActionMailer::Base
|
|||||||
tracker = options[:tracker] ? Tracker.find(options[:tracker]) : nil
|
tracker = options[:tracker] ? Tracker.find(options[:tracker]) : nil
|
||||||
target_version_id = options[:version] ? Version.named(options[:version]).pluck(:id) : nil
|
target_version_id = options[:version] ? Version.named(options[:version]).pluck(:id) : nil
|
||||||
if options[:version] && target_version_id.blank?
|
if options[:version] && target_version_id.blank?
|
||||||
raise ActiveRecord::RecordNotFound.new("Couldn't find Version with named #{options[:version]}")
|
raise ActiveRecord::RecordNotFound.new("Couldn't find Version named #{options[:version]}")
|
||||||
end
|
end
|
||||||
user_ids = options[:users]
|
user_ids = options[:users]
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user