Skip to content

Commit

Permalink
issues #4716 getQueryBuilderBySearchDataForAdmin()の$order_idを$idに戻す
Browse files Browse the repository at this point in the history
  • Loading branch information
morry48 committed Nov 11, 2020
1 parent 57a22bc commit 42609b5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Eccube/Repository/OrderRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ public function getQueryBuilderBySearchDataForAdmin($searchData)
if (isset($searchData['multi']) && StringUtil::isNotBlank($searchData['multi'])) {
//スペース除去
$clean_key_multi = preg_replace('/\s+|[ ]+/u', '', $searchData['multi']);
$id = preg_match('/^\d{0,10}$/', $clean_key_multi) ? $clean_key_multi : null;
if ($id && $id > '2147483647' && $this->isPostgreSQL()) {
$id = null;
$multi = preg_match('/^\d{0,10}$/', $clean_key_multi) ? $clean_key_multi : null;
if ($multi && $multi > '2147483647' && $this->isPostgreSQL()) {
$multi = null;
}
$qb
->andWhere('o.id = :order_id OR CONCAT(o.name01, o.name02) LIKE :likemulti OR '.
->andWhere('o.id = :multi OR CONCAT(o.name01, o.name02) LIKE :likemulti OR '.
'CONCAT(o.kana01, o.kana02) LIKE :likemulti OR o.company_name LIKE :likemulti OR '.
'o.order_no LIKE :likemulti OR o.email LIKE :likemulti OR o.phone_number LIKE :likemulti')
->setParameter('order_id', $id)
->setParameter('multi', $multi)
->setParameter('likemulti', '%'.$clean_key_multi.'%');
}

Expand Down

0 comments on commit 42609b5

Please sign in to comment.