From 00d3c24e319e143dc1623171653ccc8e6193fca2 Mon Sep 17 00:00:00 2001 From: Wahyu Ramadhan Date: Tue, 2 May 2023 11:52:18 +0700 Subject: [PATCH] Duration update --- edit-mode/function/restActivityLink.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/edit-mode/function/restActivityLink.js b/edit-mode/function/restActivityLink.js index 5f4b219..97c0e5a 100644 --- a/edit-mode/function/restActivityLink.js +++ b/edit-mode/function/restActivityLink.js @@ -69,6 +69,7 @@ var dp = gantt.createDataProcessor(function(entity, action, data, id) { } } data['version_gantt_id'] = ganttId; + data['duration'] += 1; return gantt.ajax.post({ headers: { "Content-Type": "application/json", @@ -115,6 +116,8 @@ var dp = gantt.createDataProcessor(function(entity, action, data, id) { } }); } + data['sortorder'] = data['target']; + data['duration'] += 1; return gantt.ajax.put({ headers: { "Content-Type": "application/json",