Skip to content

Commit

Permalink
Merge pull request #40 from Onlineberatung/develop
Browse files Browse the repository at this point in the history
Update vi-saas with core
  • Loading branch information
patric-dosch-vi authored Aug 8, 2022
2 parents f0b733d + e3ed65a commit aa875ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@ private Agency mergeAgencies(Agency agency, UpdateAgencyDTO updateAgencyDTO) {
List<AgencyTopic> agencyTopics = agencyTopicMergeService.getMergedTopics(agencyToUpdate,
updateAgencyDTO.getTopicIds());
agencyToUpdate.setAgencyTopics(agencyTopics);
} else {
// If the Topic feature is not enabled, Hibernate use an empty PersistentBag,
// and we have to consider this and pass it for merging.
agencyToUpdate.setAgencyTopics(agency.getAgencyTopics());
}
return agencyToUpdate;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ public class Agency implements TenantAware {

@Column(name = "is_offline", nullable = false)
@Type(type = "org.hibernate.type.NumericBooleanType")
@SortableField
@Field
private boolean offline;

@Size(max = 500)
Expand Down

0 comments on commit aa875ff

Please sign in to comment.