Cargo request console search now includes crate descriptions (#25708)
added condition checking description to cargo search
This commit is contained in:
@@ -92,6 +92,7 @@ namespace Content.Client.Cargo.UI
|
||||
// else if category and not search
|
||||
if (search.Length == 0 && _category == null ||
|
||||
search.Length != 0 && prototype.Name.ToLowerInvariant().Contains(search) ||
|
||||
search.Length != 0 && prototype.Description.ToLowerInvariant().Contains(search) ||
|
||||
search.Length == 0 && _category != null && prototype.Category.Equals(_category))
|
||||
{
|
||||
var button = new CargoProductRow
|
||||
|
||||
Reference in New Issue
Block a user