diff --git a/src/components/lists/TaskList.vue b/src/components/lists/TaskList.vue index b9fd159a2..d1a3dafab 100644 --- a/src/components/lists/TaskList.vue +++ b/src/components/lists/TaskList.vue @@ -532,8 +532,11 @@ export default { return date ? moment(date, 'YYYY-MM-DD').toDate() : null }, - updateEstimation(days) { - const estimation = daysToMinutes(this.organisation, days) + updateEstimation(duration) { + const estimation = this.organisation.format_duration_in_hours + ? duration * 60 + : daysToMinutes(this.organisation, duration) + this.updateTasksEstimation({ estimation }) },