Commit 57b06d06 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1795191: blocks without view_artefacts to show in tag search



behatnotneeded

Change-Id: Ifa7019d66861ea679dad13c0c2cf1b61936542e1
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
(cherry picked from commit c80be43f)
parent 85f84f04
......@@ -1073,8 +1073,8 @@ class PluginSearchInternal extends PluginSearch {
$artefactjoin = ' JOIN {view_artefact} va ON (va.artefact = a.parent OR va.artefact = a.id)
LEFT JOIN {artefact_blog_blogpost} abb ON abb.blogpost = a.id ';
$artefactwhere = ' AND va.view IN (' . $viewidstr . ') AND (abb.published IS NULL OR abb.published = 1) ';
$blocktypejoin = ' JOIN {view_artefact} va ON va.block = b.id ';
$blocktypewhere = ' AND va.view IN (' . $viewidstr . ') ';
$blocktypejoin = ' JOIN {view} v ON v.id = b.view ';
$blocktypewhere = ' AND v.id IN (' . $viewidstr . ') ';
$viewwhere = ' AND v.id IN (' . $viewidstr . ') ';
$collectionwhere = ' AND cv.view IN (' . $viewidstr . ') ';
}
......
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