+1
I do not know that I added issues because there is no notifications.
I made a patch, and attach it.
diff --git a/app/models/import.rb b/app/models/import.rb
index d2c53baac..01fe72d47 100644
--- a/app/models/import.rb
+++ b/app/models/import.rb
@@ -66,7 +66,8 @@ class Import < ActiveRecord::Base
'separator' => separator,
'wrapper' => wrapper,
'encoding' => encoding,
- 'date_format' => date_format
+ 'date_format' => date_format,
+ 'mail_notification' => '0'
)
end
diff --git a/app/models/issue_import.rb b/app/models/issue_import.rb
index ad04c0be5..a2925be32 100644
--- a/app/models/issue_import.rb
+++ b/app/models/issue_import.rb
@@ -77,7 +77,7 @@ class IssueImport < Import
def build_object(row, item)
issue = Issue.new
issue.author = user
- issue.notify = false
+ issue.notify = !!ActiveRecord::Type::Boolean.new.cast(settings['mail_notification'])
tracker_id = nil
if tracker
diff --git a/app/views/imports/settings.html.erb b/app/views/imports/settings.html.erb
index 6edfb10af..be504d30d 100644
--- a/app/views/imports/settings.html.erb
+++ b/app/views/imports/settings.html.erb
@@ -21,6 +21,12 @@
<label for="import_settings_date_format"><%= l(:setting_date_format) %></label>
<%= select_tag 'import_settings[date_format]', options_for_select(date_format_options, @import.settings['date_format']) %>
</p>
+ <hr/>
+ <p>
+ <label for="import_settings_mail_notification"><%= l(:field_mail_notification) %></label>
+ <%= hidden_field_tag 'import_settings[mail_notification]', '0', :id => nil %>
+ <%= check_box_tag 'import_settings[mail_notification]', '1', "#{@import.settings['mail_notification']}" == '1' %>
+ </p>
</fieldset>
<p><%= submit_tag l(:label_next).html_safe + " »".html_safe, :name => nil %></p>
<% end %>