Skip to content

Commit

Permalink
Incorrect warning about order with friendly names. Fixed #932
Browse files Browse the repository at this point in the history
  • Loading branch information
rappen committed Jul 30, 2023
1 parent 0c4e4cb commit da87a0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion FetchXmlBuilder/Controls/orderControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ protected override ControlValidationResult ValidateControl(Control control)
}
if (fxb.entities != null)
{
if (!allattributes.Any(a => a.LogicalName == cmbAttribute.Text))
var attributename = (cmbAttribute.SelectedItem is AttributeItem item && item.Metadata != null) ? item.Metadata.LogicalName : cmbAttribute.Text;
if (!allattributes.Any(a => a.LogicalName == attributename))
{
return new ControlValidationResult(ControlValidationLevel.Warning, "Attribute", ControlValidationMessage.NotInMetadata);
}
Expand Down

0 comments on commit da87a0c

Please sign in to comment.