プロジェクト

全般

プロフィール

Vote #81475

完了

Allow sending account information when importing users

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Importers_15
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
15
version_id:
155
issue_org_id:
35365
author_id:
332
assigned_to_id:
332
comments:
4
status_id:
5
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

Currently, the user import feature (#33102) does not have a feature to send account information to newly created users. Since there is a "Send account information to the user" checkbox when adding users one by one from the web UI, I think there should be the same kind of feature for importing from CSV.

The "Import users" screen already has a "Send email notifications during the import" checkbox (#22771, currently not working when importing users). I think it would be better if the account information is sent when this checkbox is turned on.


journals

Go MAEDA wrote:
> The "Import users" screen already has a "Send email notifications during the import" checkbox (#22771, currently not working when importing users). I think it would be better if the account information is sent when this checkbox is turned on.

+1
"Send email notifications during the import" checkbox didn't work, but it works with the following patch.

<pre><code class="diff">
diff --git a/app/models/user_import.rb b/app/models/user_import.rb
index 71407c14e..609c9b078 100644
--- a/app/models/user_import.rb
+++ b/app/models/user_import.rb
@@ -115,4 +115,8 @@ class UserImport < Import
object.send(:safe_attributes=, attributes, user)
object
end
+
+ def extend_object(row, item, object)
+ Mailer.deliver_account_information(object, object.password) if yes?(settings['notifications'])
+ end
end
</code></pre>
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Setting the target version to 5.0.0.
--------------------------------------------------------------------------------
Committed the patch. Thank you for your contribution.

Now you can send account information if you check the "Send email notifications during the import" checkbox on the user import dialog.
--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリImporters_15 にセット
  • 対象バージョン5.0.0_155 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0