소스 검색

fix: Check if `data-is-group` should be `true` before getting doc

version-14
Suraj Shetty 4 년 전
부모
커밋
1bfeafca5f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      frappe/core/doctype/user/user.py

+ 1
- 1
frappe/core/doctype/user/user.py 파일 보기

@@ -1018,7 +1018,7 @@ def extract_mentions(txt):
soup = BeautifulSoup(txt, 'html.parser')
emails = []
for mention in soup.find_all(class_='mention'):
if mention.get('data-is-group'):
if mention.get('data-is-group') == 'true':
try:
user_group = frappe.get_cached_doc('User Group', mention['data-id'])
emails += [d.user for d in user_group.user_group_members]


불러오는 중...
취소
저장