This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository faxtomail. See https://gitlab.nuiton.org/codelutin/faxtomail.git commit 86bc3394e3d7afb34ae281fce6ab1155f1f61a76 Author: jcouteau <couteau@codelutin.com> Date: Mon Jan 28 11:27:20 2019 +0100 Fix ot showing search page problem --- .../faxtomail/ui/swing/actions/ShowRechercheAction.java | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/actions/ShowRechercheAction.java b/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/actions/ShowRechercheAction.java index 694fe4f2..9e8b15e7 100644 --- a/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/actions/ShowRechercheAction.java +++ b/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/actions/ShowRechercheAction.java @@ -48,15 +48,12 @@ public class ShowRechercheAction extends AbstractChangeScreenAction { @Override public void doAction() throws Exception { - try(FaxToMailUIContext context = getContext()){ - context.setCurrentPaginationParameter(null); + FaxToMailUIContext context = getContext(); + context.setCurrentPaginationParameter(null); - FaxToMailUser currentUser = context.getCurrentUser(); - try(FaxToMailServiceContext serviceContext = context.newServiceContext()) { - List<Client> allowedClients = serviceContext.getClientService().getAllClientsForUser(currentUser); - getUI().setContextValue(allowedClients, SearchUIModel.PROPERTY_ALLOWED_CLIENTS); - } - } + FaxToMailUser currentUser = context.getCurrentUser(); + List<Client> allowedClients = context.newServiceContext().getClientService().getAllClientsForUser(currentUser); + getUI().setContextValue(allowedClients, SearchUIModel.PROPERTY_ALLOWED_CLIENTS); super.doAction(); } -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.