Skip to content

Commit

Permalink
Merge pull request #5653 from kurozumi/remove-space
Browse files Browse the repository at this point in the history
不要なスペースを削除
  • Loading branch information
chihiro-adachi authored Aug 29, 2022
2 parents 90f19be + 5f77685 commit 565e666
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Eccube/Repository/CustomerRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.'%');
Expand Down
2 changes: 1 addition & 1 deletion src/Eccube/Repository/OrderRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.'%');
Expand Down
2 changes: 1 addition & 1 deletion src/Eccube/Repository/ShippingRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.'%');
Expand Down

0 comments on commit 565e666

Please sign in to comment.