Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug/vspc 177 (#238) #239

Merged
merged 1 commit into from
Aug 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public class SpaceLink extends VSpaceElement implements ISpaceLink {
@JsonIgnore
@ManyToOne(targetEntity=Space.class)
@JoinColumn(name = "source_space_id")
@NotFound(action=NotFoundAction.IGNORE)
private ISpace sourceSpace;

@ManyToOne(targetEntity=Space.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,14 +287,7 @@ public Iterable<Space> addIncomingLinkInfoToSpaces(Iterable<Space> spaces) {
Iterator<Space> iterator = spaces.iterator();
while (iterator.hasNext()) {
Space space = iterator.next();
try {
space.setIncomingLinks((spaceLinkRepo.findByTargetSpace(space)).size() > 0 ? true : false);
} catch (EntityNotFoundException ex) {
// if the data is incomplete this might happen (e.g. spaces used in links
// don't exist anymore.
space.setIncomingLinks(false);
logger.error("Could not load space links.", ex);
}
space.setIncomingLinks((spaceLinkRepo.findByTargetSpace(space)).size() > 0 ? true : false);
}
return spaces;
}
Expand Down