Commit 1dee6827 authored by Vasily Bezruchkin's avatar Vasily Bezruchkin 💬
Browse files

Merge branch 'method-to-correctly-fetch-favorites' into 'master'

Added method to correctly fetch favorites

See merge request intelliants/directory!1
parents 8e031d19 5505d82b
......@@ -112,6 +112,11 @@ class iaListing extends abstractModuleFront implements iaDirectoryModule
return $rows;
}
public function getFavorites($ids)
{
return $this->get('l.id IN (' . implode(',', $ids) . ')');
}
public function coreSearch($stmt, $start, $limit, $order)
{
$stmt .= " AND l.`status` = '" . iaCore::STATUS_ACTIVE . "'";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment