Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

check if the duration is not undefined(milestones), we can use it for updating

bsatarnejad59f587a33729
diff --git a/frontend/src/app/features/calendar/op-work-packages-calendar.service.ts b/frontend/src/app/features/calendar/op-work-packages-calendar.service.ts
index 746f5ef622e..eba6c4ef770 100644
--- a/frontend/src/app/features/calendar/op-work-packages-calendar.service.ts
+++ b/frontend/src/app/features/calendar/op-work-packages-calendar.service.ts
@@ -420,7 +420,7 @@ export class OpWorkPackagesCalendarService extends UntilDestroyedMixin {
updateDates(resizeInfo:EventResizeDoneArg|EventDropArg|EventReceiveArg, dragged?:boolean):ResourceChangeset<WorkPackageResource> {
const workPackage = resizeInfo.event.extendedProps.workPackage as WorkPackageResource;
const changeset = this.halEditing.edit(workPackage);
- if (!workPackage.ignoreNonWorkingDays && dragged) {
+ if (!workPackage.ignoreNonWorkingDays && workPackage.duration && dragged) {
changeset.setValue('duration', workPackage.duration);
} else {
const due = moment(resizeInfo.event.endStr)