Sfoglia il codice sorgente

Handle large duration tasks (#3509)

frappe/erpnext#8724
version-14
Faris Ansari 8 anni fa
committed by Rushabh Mehta
parent
commit
03e5dd2eb6
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. +5
    -0
      frappe/public/js/lib/frappe-gantt/frappe-gantt.js

+ 5
- 0
frappe/public/js/lib/frappe-gantt/frappe-gantt.js Vedi File

@@ -154,6 +154,11 @@ return /******/ (function(modules) { // webpackBootstrap
task._start = moment(task.start, self.config.date_format);
task._end = moment(task.end, self.config.date_format);
// make task invalid if duration too large
if (task._end.diff(task._start, 'years') > 10) {
task.end = null;
}
// cache index
task._index = i;


Caricamento…
Annulla
Salva