Skip to content

Commit b99abe4

Browse files
committed
fix(admin): include customer and shipping email in order search
1 parent 6d188b8 commit b99abe4

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/Smartstore.Web/Areas/Admin/Controllers/OrderController.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,13 @@ public async Task<IActionResult> OrderList(GridCommand command, OrderListModel m
209209

210210
if (model.CustomerEmail.HasValue())
211211
{
212-
orderQuery = orderQuery.ApplySearchFilterFor(x => x.BillingAddress.Email, model.CustomerEmail);
212+
orderQuery = orderQuery.ApplySearchFilter(
213+
model.CustomerEmail,
214+
LogicalRuleOperator.Or,
215+
x => x.BillingAddress.Email,
216+
x => x.Customer.Email,
217+
x => x.ShippingAddress.Email);
218+
213219
}
214220
if (model.CustomerName.HasValue())
215221
{

0 commit comments

Comments
 (0)