소스 검색

No Tags was not counting emtpy tags (#4231)

version-14
KanchanChauhan 7 년 전
committed by Rushabh Mehta
부모
커밋
8c8e9fdd98
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. +1
    -2
      frappe/desk/reportview.py

+ 1
- 2
frappe/desk/reportview.py 파일 보기

@@ -259,7 +259,7 @@ def get_stats(stats, doctype, filters=[]):
stats[tag] = scrub_user_tags(tagcount)
stats[tag].append([_("No Tags"), frappe.get_list(doctype,
fields=[tag, "count(*)"],
filters=filters +["({0} = ',' or {0} is null)".format(tag)], as_list=True)[0][1]])
filters=filters +["({0} = ',' or {0} = '' or {0} is null)".format(tag)], as_list=True)[0][1]])
else:
stats[tag] = tagcount

@@ -269,7 +269,6 @@ def get_stats(stats, doctype, filters=[]):
except MySQLdb.OperationalError:
# raised when _user_tags column is added on the fly
pass

return stats

@frappe.whitelist()


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