Planned task is converting into a milestone on dragging the task in the Gantt chart in Planning console


Description

The planned task is converting into a milestone on dragging the task in the Gantt chart in Planning console

Steps to Reproduce

In an affected instance (see Seen In):

  1. Update the Date Format to dd-MM-YYYY.
  2. Open any project.
  3. Click on the "Planning Console" Related link.
  4. Create a new task by clicking on the black "+" symbol and enter a desired duration to the task, eg: 10 Days.
  5. Click on the middle of the taskbar that is created on the right-hand side Gantt chart and drag it on the right.
  6. Observe the behavior of the task on the chart. The task will be converted into a Milestone which should not happen.

Workaround

FULL WORKAROUND BELOW :
==========================
>> Update script in 'Calculate Duration from End date' Business rule to <<

(function executeRule(current, previous /*null when async*/) {
var response;
var plannedTaskApi = new SNC.PlannedTaskAPI();
if (current.getValue("allow_dates_outside_schedule") == "1")
response = plannedTaskApi.calculateDurationInternal(current.getValue('start_date'), current.getValue('end_date'), "");    //Updated line
else
response = plannedTaskApi.calculateDurationInternal(current.getValue('start_date'), current.getValue('end_date'), current.top_task.schedule);     //Updated line
response = new JSON().decode(response);
current.duration = response.duration;

})(current, previous);


Related Problem: PRB1376428