Skip to content

Commit

Permalink
[Core] Fix erreur lorsqu'un champ n'est pas renseigné dans une value …
Browse files Browse the repository at this point in the history
…alors qu'il fait l'objet d'une contrainte d'unicité
  • Loading branch information
gideruette committed Oct 10, 2023
1 parent 0c362b9 commit becb4dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions TopModel.Core/ModelStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1438,6 +1438,11 @@ IEnumerable<ModelError> ResolveAliases(IEnumerable<AliasProperty> alps)

foreach (var uk in uks)
{
if (!classe.Values.All(value => uk.All(p => value.Value.ContainsKey(p))))
{
continue;
}

var ukValues = classe.Values.Select(value => string.Concat(uk.Select(p => value.Value[p]))).ToList();
for (int i = 0; i < classe.Values.Count; i++)
{
Expand Down

0 comments on commit becb4dd

Please sign in to comment.