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

[FAU-443] Synchronize parent and child terms using the MultilingualLink representation #49

Merged
merged 5 commits into from
Jan 3, 2025
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Add synchronization of 'German language skills for international students' child terms to consuming websites.

### Changed

- Keywords are indexed for searching.
Expand Down
8 changes: 4 additions & 4 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Infrastructure/Search/FilterableTermsUpdater.php
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ private function retrieveParentTermId(
return 0;
}

/** @var AdmissionRequirement|Degree $flatProperty */
/** @var AdmissionRequirement|Degree|MultilingualLink $flatProperty */
$parentProperty = $flatProperty->parent();

if (is_null($parentProperty)) {
Expand Down Expand Up @@ -403,7 +403,7 @@ private function isHierarchicalProperty(
MultilingualString|MultilingualLink|AdmissionRequirement|Degree $flatProperty
): bool {

return $flatProperty instanceof Degree || $flatProperty instanceof AdmissionRequirement;
return !$flatProperty instanceof MultilingualString;
}

private function createTerm(TermData $termData): ?int
Expand Down
Loading