Skip to content

Commit

Permalink
Merge pull request #1059 from axonivy-market/bug/IVYPORTAL-17273-Mani…
Browse files Browse the repository at this point in the history
…pulate-expiry-in-task-detail-in-portal-doesn-t-produce-correct-behaviour-LE

IVYPORTAL-17273 Manipulate expiry in task detail in portal doesn't pr…
  • Loading branch information
mnhnam-axonivy authored Sep 19, 2024
2 parents 7128199 + 7804161 commit 403da82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;",
"}",
Expand Down

0 comments on commit 403da82

Please sign in to comment.