[fix] [minor] on_communication, when checking if system user, extract email id and then check
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
from __future__ import unicode_literals
|
||||
import webnotes
|
||||
from webnotes.utils import cstr
|
||||
from webnotes.utils import cstr, extract_email_id
|
||||
|
||||
from utilities.transaction_base import TransactionBase
|
||||
|
||||
@@ -13,7 +13,7 @@ class DocType(TransactionBase):
|
||||
self.doclist = doclist
|
||||
|
||||
def on_communication(self, comm):
|
||||
if webnotes.conn.get_value("Profile", comm.sender, "user_type")=="System User":
|
||||
if webnotes.conn.get_value("Profile", extract_email_id(comm.sender), "user_type")=="System User":
|
||||
status = "Replied"
|
||||
else:
|
||||
status = "Open"
|
||||
|
||||
Reference in New Issue
Block a user