From 2cd4531a8de8b6b22f02e23d752b3730f241a8e0 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 21 Mar 2012 18:03:00 +0530 Subject: [PATCH] simple fix in assign to --- py/webnotes/boot.py | 2 +- py/webnotes/widgets/form/assign_to.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/py/webnotes/boot.py b/py/webnotes/boot.py index ea6b6049dc..428a4b8c7e 100644 --- a/py/webnotes/boot.py +++ b/py/webnotes/boot.py @@ -41,7 +41,7 @@ def get_bootinfo(): # remove email settings from control panel dict for field in ['mail_login', 'mail_password', 'mail_port', 'outgoing_mail_server', 'use_ssl']: - del cp[field] + if field in cp: del cp[field] # system info bootinfo['control_panel'] = cp.copy() diff --git a/py/webnotes/widgets/form/assign_to.py b/py/webnotes/widgets/form/assign_to.py index bc305eda22..c9ae0e7e73 100644 --- a/py/webnotes/widgets/form/assign_to.py +++ b/py/webnotes/widgets/form/assign_to.py @@ -110,7 +110,7 @@ def notify_assignment(assigned_by, owner, doc_type, doc_name, action='CLOSE', no arg = { 'uid': owner, 'comment': "A new task, %s, has been assigned to you by %s." \ - % (assignment, webnotes.session.get('uer')), + % (assignment, webnotes.session.get('user')), 'notify': notify } from home.page.my_company import my_company