When applying the search filter use also the ships name in the free text input
This commit is contained in:
parent
2f0ca85c19
commit
31ddcbb336
@ -450,7 +450,7 @@ namespace BreCalClient
|
|||||||
|
|
||||||
if(!string.IsNullOrEmpty(sfm.SearchString))
|
if(!string.IsNullOrEmpty(sfm.SearchString))
|
||||||
{
|
{
|
||||||
this._visibleControlModels.RemoveAll(x => !x.ContainsRemarkText(sfm.SearchString));
|
this._visibleControlModels.RemoveAll(x => !(x.ContainsRemarkText(sfm.SearchString) || (x.Ship?.Name.Contains(sfm.SearchString, StringComparison.InvariantCultureIgnoreCase) ?? false)));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(sfm.ShipLengthTo != null)
|
if(sfm.ShipLengthTo != null)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user