소스 검색

[hotfix] Fallback for indicator_formatter doc (#4985)

version-14
Faris Ansari 7 년 전
committed by GitHub
부모
커밋
ebbc28ce4d
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      frappe/public/js/legacy/client_script_helpers.js

+ 1
- 1
frappe/public/js/legacy/client_script_helpers.js 파일 보기

@@ -437,7 +437,7 @@ _f.Frm.prototype.set_indicator_formatter = function(fieldname, get_color, get_te
function(value, df, options, doc) {
if(value) {
return repl('<a class="indicator %(color)s" href="#Form/%(doctype)s/%(name)s">%(label)s</a>', {
color: get_color(doc),
color: get_color(doc || {}),
doctype: df.options,
name: value,
label: get_text ? get_text(doc) : value


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