ソースを参照

[hotfix] Fallback for indicator_formatter doc (#4985)

version-14
Faris Ansari 7年前
committed by GitHub
コミット
ebbc28ce4d
この署名に対応する既知のキーがデータベースに存在しません 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) { function(value, df, options, doc) {
if(value) { if(value) {
return repl('<a class="indicator %(color)s" href="#Form/%(doctype)s/%(name)s">%(label)s</a>', { 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, doctype: df.options,
name: value, name: value,
label: get_text ? get_text(doc) : value label: get_text ? get_text(doc) : value


読み込み中…
キャンセル
保存