Browse Source

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
tags/4.0.0
Go MAEDA 6 years ago
parent
commit
93a09f05cc
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      app/models/mailer.rb

+ 1
- 1
app/models/mailer.rb View File

@@ -382,7 +382,7 @@ class Mailer < ActionMailer::Base
tracker = options[:tracker] ? Tracker.find(options[:tracker]) : nil
target_version_id = options[:version] ? Version.named(options[:version]).pluck(:id) : nil
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
user_ids = options[:users]


Loading…
Cancel
Save