Przeglądaj źródła

[hotfix] Fallback for indicator_formatter doc (#4985)

version-14
Faris Ansari 7 lat temu
committed by GitHub
rodzic
commit
ebbc28ce4d
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      frappe/public/js/legacy/client_script_helpers.js

+ 1
- 1
frappe/public/js/legacy/client_script_helpers.js Wyświetl plik

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


Ładowanie…
Anuluj
Zapisz