From 5f776857b1a3abc1c60f52aaae248ed78475ac81 Mon Sep 17 00:00:00 2001 From: kurozumi Date: Sat, 27 Aug 2022 14:19:34 +0900 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E8=A6=81=E3=81=AA=E3=82=B9=E3=83=9A?= =?UTF-8?q?=E3=83=BC=E3=82=B9=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Eccube/Repository/CustomerRepository.php | 2 +- src/Eccube/Repository/OrderRepository.php | 2 +- src/Eccube/Repository/ShippingRepository.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Eccube/Repository/CustomerRepository.php b/src/Eccube/Repository/CustomerRepository.php index 7d8f0ae83d3..79c17e2b49c 100644 --- a/src/Eccube/Repository/CustomerRepository.php +++ b/src/Eccube/Repository/CustomerRepository.php @@ -160,7 +160,7 @@ public function getQueryBuilderBySearchData($searchData) // tel if (isset($searchData['phone_number']) && StringUtil::isNotBlank($searchData['phone_number'])) { - $tel = preg_replace('/[^0-9]/ ', '', $searchData['phone_number']); + $tel = preg_replace('/[^0-9]/', '', $searchData['phone_number']); $qb ->andWhere('c.phone_number LIKE :phone_number') ->setParameter('phone_number', '%'.$tel.'%'); diff --git a/src/Eccube/Repository/OrderRepository.php b/src/Eccube/Repository/OrderRepository.php index d9ae8aeeabf..e2fa7501d41 100644 --- a/src/Eccube/Repository/OrderRepository.php +++ b/src/Eccube/Repository/OrderRepository.php @@ -179,7 +179,7 @@ public function getQueryBuilderBySearchDataForAdmin($searchData) // tel if (isset($searchData['phone_number']) && StringUtil::isNotBlank($searchData['phone_number'])) { - $tel = preg_replace('/[^0-9]/ ', '', $searchData['phone_number']); + $tel = preg_replace('/[^0-9]/', '', $searchData['phone_number']); $qb ->andWhere('o.phone_number LIKE :phone_number') ->setParameter('phone_number', '%'.$tel.'%'); diff --git a/src/Eccube/Repository/ShippingRepository.php b/src/Eccube/Repository/ShippingRepository.php index e25bfef4283..f26a00b865b 100644 --- a/src/Eccube/Repository/ShippingRepository.php +++ b/src/Eccube/Repository/ShippingRepository.php @@ -127,7 +127,7 @@ public function getQueryBuilderBySearchDataForAdmin($searchData) // tel if (isset($searchData['phone_number']) && StringUtil::isNotBlank($searchData['phone_number'])) { - $tel = preg_replace('/[^0-9]/ ', '', $searchData['phone_number']); + $tel = preg_replace('/[^0-9]/', '', $searchData['phone_number']); $qb ->andWhere('s.phone_number LIKE :phone_number') ->setParameter('phone_number', '%'.$tel.'%');