Merge branch 'bugfix/e-shop' into 'master'

fixed emailing error

See merge request fronk/thetool!664
This commit is contained in:
Luca Haid
2024-10-14 07:07:01 +00:00

View File

@@ -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;
});
}