Skip to content

Commit

Permalink
Fix searching for sku and email
Browse files Browse the repository at this point in the history
  • Loading branch information
AJenbo committed Mar 18, 2018
1 parent e4cd749 commit 5f129e0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Changed
- Fix searching for product by sku
- Add IE9 compatability for clients
- Fix searching for sku and email

### Added

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ private function generateFilterInvoiceBySelection(array $selected, User $user):
}

if ($selected['email']) {
$where[] = '`email` LIKE ' . app('db')->eandq('%' . $selected['email'] . '%');
$where[] = '`email` LIKE ' . app('db')->quote('%' . $selected['email'] . '%');
}

if (null !== $selected['momssats']) {
Expand Down
2 changes: 1 addition & 1 deletion application/inc/Http/Controllers/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ private function findPages(
$where = ' AND `maerke` = ' . $brandId;
}
if ($varenr) {
$where .= ' AND varenr LIKE ' . app('db')->eandq($varenr . '%');
$where .= ' AND varenr LIKE ' . app('db')->quote($varenr . '%');
}
if ($minpris) {
$where .= ' AND pris > ' . $minpris;
Expand Down

0 comments on commit 5f129e0

Please sign in to comment.