From d60cecdc5de24e721fa9c672271d8d1dce3b37af Mon Sep 17 00:00:00 2001 From: Katerina Iatropoulou Date: Mon, 12 Oct 2020 00:39:51 +0000 Subject: [PATCH] progress for edit --- .../dnetlib/openaire/usermanagement/EditRegisteredService.java | 2 +- .../openaire/usermanagement/utils/RegisteredServicesUtils.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/eu/dnetlib/openaire/usermanagement/EditRegisteredService.java b/src/main/java/eu/dnetlib/openaire/usermanagement/EditRegisteredService.java index 701edff..f5ccd86 100644 --- a/src/main/java/eu/dnetlib/openaire/usermanagement/EditRegisteredService.java +++ b/src/main/java/eu/dnetlib/openaire/usermanagement/EditRegisteredService.java @@ -58,7 +58,7 @@ public class EditRegisteredService extends HttpServlet { response.sendRedirect("./registeredServices"); } - if (serviceId == null || serviceId.isEmpty()) { + if (serviceId == null || serviceId.isEmpty()) { //TODO WRONG MESSAGE request.getSession().setAttribute("message", "Service with id " + serviceId + " does not exist."); } diff --git a/src/main/java/eu/dnetlib/openaire/usermanagement/utils/RegisteredServicesUtils.java b/src/main/java/eu/dnetlib/openaire/usermanagement/utils/RegisteredServicesUtils.java index bdf8166..946d6ce 100644 --- a/src/main/java/eu/dnetlib/openaire/usermanagement/utils/RegisteredServicesUtils.java +++ b/src/main/java/eu/dnetlib/openaire/usermanagement/utils/RegisteredServicesUtils.java @@ -30,7 +30,7 @@ public class RegisteredServicesUtils { System.out.println("I AM HERE...."); RegisteredService registeredService = registeredServiceDao.fetchRegisteredServiceById(id); if (registeredService == null) { - return true; //no harm in accessing nothing + return false; //no harm in accessing nothing } System.out.println("....and HERE"); System.out.println(registeredService.getAai_id());