From 699e8d5d853e3ae51a0d18b68856d76da0df116a Mon Sep 17 00:00:00 2001 From: Manuel Rego Casasnovas Date: Thu, 21 Jun 2012 12:26:36 +0200 Subject: [PATCH] Fix issue in TemplateController and ProfileDAO due to new predefined users Need to open transaction in ProfileDAO.findByProfileName() because of this method is called via TemplateController (which is accessing the new predefined users). The new predefined users with a profile are using the method PredefinedProfiles.getFromDB() that is calling the ProfileDAO. FEA: ItEr76S30PermissionsEnhancements --- .../main/java/org/libreplan/business/users/daos/ProfileDAO.java | 1 + 1 file changed, 1 insertion(+) diff --git a/libreplan-business/src/main/java/org/libreplan/business/users/daos/ProfileDAO.java b/libreplan-business/src/main/java/org/libreplan/business/users/daos/ProfileDAO.java index 16dbf9ecc..c6afe7c42 100644 --- a/libreplan-business/src/main/java/org/libreplan/business/users/daos/ProfileDAO.java +++ b/libreplan-business/src/main/java/org/libreplan/business/users/daos/ProfileDAO.java @@ -65,6 +65,7 @@ public class ProfileDAO extends GenericDAOHibernate implements } @Override + @Transactional(readOnly = true) public Profile findByProfileName(String profileName) throws InstanceNotFoundException{