mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-31 20:52:17 +01:00
Merge pull request #857 from lupusmeatus/bugfix-restrict-addressbookprovider-search-to-single-addressbook
Restrict addressbookprovider-search to its address-book to fix duplicate search results
This commit is contained in:
commit
6b85b484d3
@ -115,10 +115,12 @@ class AddressbookProvider implements \OCP\IAddressBook {
|
||||
INNER JOIN `$addrTable`
|
||||
ON `$addrTable`.id = `$contTable`.addressbookid
|
||||
WHERE
|
||||
(
|
||||
(`$contTable`.addressbookid = ?) AND
|
||||
(
|
||||
SQL;
|
||||
|
||||
$params = array();
|
||||
$params[] = $this->addressBook->getMetaData()['id'];
|
||||
foreach ($searchProperties as $property) {
|
||||
$params[] = $property;
|
||||
$params[] = '%' . $pattern . '%';
|
||||
|
Loading…
x
Reference in New Issue
Block a user