From 92ac884fb92ccb207cfeee4778bbe0955fcba0c7 Mon Sep 17 00:00:00 2001 From: Wahyu Ramadhan Date: Tue, 16 May 2023 10:52:45 +0700 Subject: [PATCH] Removing duration hack --- edit-mode/function/restActivityLink.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/edit-mode/function/restActivityLink.js b/edit-mode/function/restActivityLink.js index f905def..d0da21a 100644 --- a/edit-mode/function/restActivityLink.js +++ b/edit-mode/function/restActivityLink.js @@ -116,9 +116,7 @@ var dp = gantt.createDataProcessor(function(entity, action, data, id) { } }); } - if(!data['rencana_biaya']){ - data['duration'] += 1; - } + return gantt.ajax.put({ headers: { "Content-Type": "application/json",