Browse Source

Merge pull request 'cek baseline before changing lag' (#26) from dev-wahyu into staging

Reviewed-on: ordo/adw-gantt#26
pull/1/head
ibnu 1 year ago
parent
commit
878847d6a6
  1. 2
      edit-mode/function/function.js

2
edit-mode/function/function.js

@ -717,7 +717,7 @@ function updateLinksLag(data) {
let predecessor = data.data.find(item => item.id == link.source); let predecessor = data.data.find(item => item.id == link.source);
if (predecessor) { if (predecessor) {
let lag = gantt.calculateDuration(new Date(predecessor.end_date), new Date(task.start_date)); let lag = gantt.calculateDuration(new Date(predecessor.end_date), new Date(task.start_date));
if (link.type == "0") { if (link.type == "0" && isBaselineSet) {
link.lag = lag; link.lag = lag;
} }
} }

Loading…
Cancel
Save