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:
Akhil Narang 2025-01-15 12:29:39 +05:30 committed by GitHub
commit 5b9fde293e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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):