Skip to content

Commit

Permalink
Merge pull request #539 from haraldpdl/customers_search
Browse files Browse the repository at this point in the history
add missing search values (fix #502)
  • Loading branch information
haraldpdl authored Nov 20, 2016
2 parents e91a67f + 1108341 commit 141c6db
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions catalog/admin/customers.php
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,13 @@ function check_form() {
$sql_query .= ' order by c.customers_lastname, c.customers_firstname limit :page_set_offset, :page_set_max_results';

$Qcustomers = $OSCOM_Db->prepare($sql_query);

if (isset($_GET['search']) && tep_not_null($_GET['search'])) {
$Qcustomers->bindValue(':customers_lastname', '%' . $_GET['search'] . '%');
$Qcustomers->bindValue(':customers_firstname', '%' . $_GET['search'] . '%');
$Qcustomers->bindValue(':customers_email_address', '%' . $_GET['search'] . '%');
}

$Qcustomers->setPageSet(MAX_DISPLAY_SEARCH_RESULTS);
$Qcustomers->execute();

Expand Down

0 comments on commit 141c6db

Please sign in to comment.