diff --git a/AxonIvyPortal/PortalTest/src_test/portal/guitest/test/TaskDetailsTest.java b/AxonIvyPortal/PortalTest/src_test/portal/guitest/test/TaskDetailsTest.java index 5863ddc97fb..aece3c37020 100644 --- a/AxonIvyPortal/PortalTest/src_test/portal/guitest/test/TaskDetailsTest.java +++ b/AxonIvyPortal/PortalTest/src_test/portal/guitest/test/TaskDetailsTest.java @@ -94,7 +94,6 @@ public void testChangeTaskDeadlineWithAfterEscalationIsNA() { assertTrue(StringUtils.equalsIgnoreCase(prepareTomorrowAsLocaleDateString(now), taskDetailsPage.getExpiryOfTaskAt())); String firstTaskNoteComment = taskDetailsPage.getFirstTaskNoteComment(); assertTrue(StringUtils.contains(firstTaskNoteComment, "Portal Admin User (admin) has set deadline to task")); - assertTrue(StringUtils.contains(firstTaskNoteComment, "assign Everybody as the task escalation activator")); } @Test diff --git a/AxonIvyPortal/portal/src_hd/ch/ivy/addon/portalkit/component/TaskItemGeneralInfo/TaskItemGeneralInfoProcess.p.json b/AxonIvyPortal/portal/src_hd/ch/ivy/addon/portalkit/component/TaskItemGeneralInfo/TaskItemGeneralInfoProcess.p.json index 604987d1a26..021e8f020d9 100644 --- a/AxonIvyPortal/portal/src_hd/ch/ivy/addon/portalkit/component/TaskItemGeneralInfo/TaskItemGeneralInfoProcess.p.json +++ b/AxonIvyPortal/portal/src_hd/ch/ivy/addon/portalkit/component/TaskItemGeneralInfo/TaskItemGeneralInfoProcess.p.json @@ -61,9 +61,12 @@ "import ch.ivyteam.ivy.security.IUser;", "import ch.ivy.addon.portalkit.service.TaskInforActionService;", "", - "// Behind the scene, Portal sets expiry activator to the current responsible then set expiry time.", + "// Behind the scene, Portal sets expiry activator to the current responsible", + "// then set expiry time in case the task has expiry handler.", "boolean isUpdateExpiryActivator = false;", - "if (in.task.getExpiryActivator() == null) {", + "if (in.task.getExpiryActivator() == null &&", + " StringUtils.isNotBlank(in.task.getExpiryTaskStartElementPid())) {", + "", " in.task.setExpiryActivator(in.task.getActivator());", " isUpdateExpiryActivator = true;", "}",