diff --git a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/tasks/SchedTaskDirectoryPanel.java b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/tasks/SchedTaskDirectoryPanel.java index 1f052d495a..3690d7e464 100644 --- a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/tasks/SchedTaskDirectoryPanel.java +++ b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/tasks/SchedTaskDirectoryPanel.java @@ -277,10 +277,10 @@ public void onClick(final AjaxRequestTarget target, final T ignore) { @Override public void onClick(final AjaxRequestTarget target, final T ignore) { + SchedTaskDirectoryPanel.this.getTogglePanel().close(target); send(SchedTaskDirectoryPanel.this, Broadcast.EXACT, new AjaxWizard.EditItemActionEvent<>( - restClient.readTask(taskType, model.getObject().getKey()), - target).setTitleModel( + restClient.readTask(taskType, model.getObject().getKey()), target).setTitleModel( new StringResourceModel("inner.task.edit", SchedTaskDirectoryPanel.this, Model.of(Pair.of(ActionLink.ActionType.EDIT, model.getObject()))))); @@ -294,7 +294,7 @@ public void onClick(final AjaxRequestTarget target, final T ignore) { @Override public void onClick(final AjaxRequestTarget target, final T ignore) { SchedTaskDirectoryPanel.this.getTogglePanel().close(target); - final T clone = SerializationUtils.clone(model.getObject()); + T clone = SerializationUtils.clone(model.getObject()); clone.setKey(null); send(SchedTaskDirectoryPanel.this, Broadcast.EXACT, new AjaxWizard.EditItemActionEvent<>(clone, target).setTitleModel(