Przeglądaj źródła

fix: handled no progress field scenario

version-14
pateljannat 4 lat temu
rodzic
commit
b21e73cf00
1 zmienionych plików z 3 dodań i 1 usunięć
  1. +3
    -1
      frappe/public/js/frappe/views/gantt/gantt_view.js

+ 3
- 1
frappe/public/js/frappe/views/gantt/gantt_view.js Wyświetl plik

@@ -50,8 +50,10 @@ frappe.views.GanttView = class GanttView extends frappe.views.ListView {

// title
var label;
if (meta.title_field) {
if (meta.title_field && item.progress) {
label = $.format("{0} ({1}) - {2}%", [item[meta.title_field], item.name, item.progress]);
} else if (meta.title_field) {
label = $.format("{0} ({1})", [item[meta.title_field], item.name]);
} else {
label = item[field_map.title];
}


Ładowanie…
Anuluj
Zapisz