Skip to content

Commit 529a97d

Browse files
committed
Feature #13197: implementing new community component.
Fixing a technical error on user deletion.
1 parent 30de18d commit 529a97d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

community/community-library/src/main/java/org/silverpeas/components/community/repository/CommunityOfUsersJpaRepository.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
import java.util.List;
3333
import java.util.Optional;
3434

35+
import static java.lang.Integer.parseInt;
36+
3537
/**
3638
* Implementation of the repository of Community of users by extending the
3739
* {@link org.silverpeas.core.persistence.datasource.repository.jpa.BasicJpaEntityRepository} base
@@ -64,6 +66,6 @@ public List<CommunityOfUsers> getAllByUserId(final String userId) {
6466
"select c from CommunityOfUsers c inner join CommunityMembership m on m.community = c " +
6567
"where m.userId = :userId and m.status = org.silverpeas.components.community.model" +
6668
".MembershipStatus.COMMITTED");
67-
return newNamedParameters().add("userId", userId).applyTo(query).getResultList();
69+
return newNamedParameters().add("userId", parseInt(userId)).applyTo(query).getResultList();
6870
}
6971
}

0 commit comments

Comments
 (0)