Commit 20a96d77 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

Album: Don't include non-present albums in search results

parent 4c4046e1
......@@ -343,6 +343,7 @@ std::vector<AlbumPtr> Album::search( DBConnection dbConn, const std::string& pat
{
static const std::string req = "SELECT * FROM " + policy::AlbumTable::Name + " WHERE id_album IN "
"(SELECT rowid FROM " + policy::AlbumTable::Name + "Fts WHERE " +
policy::AlbumTable::Name + "Fts MATCH ?)";
policy::AlbumTable::Name + "Fts MATCH ?)"
"AND is_present = 1";
return fetchAll<IAlbum>( dbConn, req, pattern + "*" );
}
Markdown is supported
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