Merge pull request #29171 from akhilnarang/strip-html-activity-log
fix(activity_log): strip html from full name before inserting
This commit is contained in:
commit
5b9fde293e
1 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ from frappe.core.utils import set_timeline_doc
|
|||
from frappe.model.document import Document
|
||||
from frappe.query_builder import DocType, Interval
|
||||
from frappe.query_builder.functions import Now
|
||||
from frappe.utils import get_fullname, now
|
||||
from frappe.utils import get_fullname, now, strip_html
|
||||
|
||||
|
||||
class ActivityLog(Document):
|
||||
|
|
@ -36,7 +36,7 @@ class ActivityLog(Document):
|
|||
# end: auto-generated types
|
||||
|
||||
def before_insert(self):
|
||||
self.full_name = get_fullname(self.user)
|
||||
self.full_name = strip_html(get_fullname(self.user))
|
||||
self.date = now()
|
||||
|
||||
def validate(self):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue