ソースを参照

[fix] welcome mail if no other app

version-14
Rushabh Mehta 8年前
コミット
70db4e7fc7
1個のファイルの変更4行の追加1行の削除
  1. +4
    -1
      frappe/core/doctype/user/user.py

+ 4
- 1
frappe/core/doctype/user/user.py ファイルの表示

@@ -265,7 +265,10 @@ class User(Document):
link = self.reset_password()

app_title = [t for t in frappe.get_hooks('app_title') if t != 'Frappe Framework']
subject = _("Welcome to {0}").format(app_title[0])
if app_title:
subject = _("Welcome to {0}").format(app_title[0])
else:
subject = _("Complete Registration")

self.send_login_mail(subject, "templates/emails/new_user.html",
dict(


読み込み中…
キャンセル
保存