setter
parent
c22ceaa5f9
commit
99675758bc
|
@ -78,8 +78,8 @@ class SpuRepository extends Repository
|
||||||
$whereMap[] = ['saleable', '=', $params['saleable']];
|
$whereMap[] = ['saleable', '=', $params['saleable']];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($params['keyword']) && !empty($params['keyword'])) {
|
if (isset($params['keyword']) && !empty(trim($params['keyword']))) {
|
||||||
$whereMap[] = ['name|subtitle', 'like', '%'.$params['keyword'].'%'];
|
$whereMap[] = ['name|subtitle', 'like', '%'.trim($params['keyword']).'%'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($params['spu_type']) && !empty($params['spu_type'])) {
|
if (isset($params['spu_type']) && !empty($params['spu_type'])) {
|
||||||
|
|
Loading…
Reference in New Issue