fixed emailing error
This commit is contained in:
@@ -193,7 +193,15 @@ class WarehouseEShopOrderController extends TTCrud {
|
||||
|
||||
if (!empty($orderIds)) {
|
||||
$orders = array_filter($orders, function ($order) use ($orderIds) {
|
||||
return in_array($order['id'], $orderIds);
|
||||
// use for each loop and use intval for order id and orderIds
|
||||
$found = false;
|
||||
foreach ($orderIds as $orderId) {
|
||||
if (intval($order['id']) === intval($orderId)) {
|
||||
$found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return $found;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user