Skip to content

Commit

Permalink
Merge pull request #99 from saritasa-nest/feature/SN-770-fix-problem-…
Browse files Browse the repository at this point in the history
…with-displaying-not-included-navigation-property

Feature/sn 770 fix problem with displaying not included navigation property
  • Loading branch information
AlexanderMakarov124 authored Oct 17, 2024
2 parents df25279 + 68468e6 commit 234f6c6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,7 @@
[+] Fix properties can't be hidden using configuration.

0.4.2-alpha [2024-10-17]
[*] Change way of displaying navigation details on List View page.
[*] Change way of displaying navigation details on List View page.

0.4.3-alpha [2024-10-17]
[*] Fix problem with displaying not included navigation's properties.
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.4.2-alpha
0.4.3-alpha
Original file line number Diff line number Diff line change
Expand Up @@ -198,5 +198,12 @@ private static void ApplyNavigationOptions(

property?.ApplyPropertyOptions(propertyOptions);
}

var notIncludedProperties = navigation.TargetEntityProperties
.Where(p => !navigationOptions.PropertyOptions.Any(option => option.PropertyName == p.Name));
foreach (var notIncludedProperty in notIncludedProperties)
{
notIncludedProperty.IsHidden = true;
}
}
}

0 comments on commit 234f6c6

Please sign in to comment.