Noch einen Fehler im SciOrganization-Modul gefunden und behoben.

git-svn-id: https://svn.libreccm.org/ccm/trunk@923 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2011-05-18 17:30:53 +00:00
parent 7e17c324dc
commit b8ef1b3bbb
2 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ query getIdsOfDepartmentsOfSciOrganization {
from ct_sciorga_organizations_departments_map
where ct_sciorga_organizations_departments_map.organization_id = :organization
} map {
departmentId = ct_sciorga_organizations_departments_map;
departmentId = ct_sciorga_organizations_departments_map.department_id;
}
}

View File

@ -219,8 +219,8 @@ public class SciOrganization extends GenericOrganizationalUnit {
SessionManager.getSession().retrieveQuery(
"com.arsdigita.cms.contenttypes.getIdsOfDepartmentsOfSciOrganization");
departmentsQuery.setParameter("organization", getID());
if (query.size() > 0) {
if (departmentsQuery.size() > 0) {
BigDecimal departmentId;
boolean result = false;
while (departmentsQuery.next()) {