Commit 4187efd0 authored by Doris Tam's avatar Doris Tam 🌷
Browse files

Bug 1949003: Error on 'Create' -> 'Tags' when have empty collection

Change-Id: I544764e5ac4e3b7b332d39ce16f5b200c2bdeeff
parent ee7b4a14
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1346,6 +1346,7 @@ class PluginSearchInternal extends PluginSearch {
                c.owner, c.group, c.institution, NULL AS urlid
            FROM {collection} c
            JOIN {collection_view} cv ON cv.collection = c.id
            JOIN {view} v ON (v.id = cv.view  AND v.type !='progress')
            LEFT JOIN {tag} ct ON (ct.resourcetype = 'collection' AND ct.resourceid = c.id" . $typecast . ")
            LEFT JOIN {tag} vt ON (vt.resourcetype = 'view' AND vt.resourceid = cv.view" . $typecast . ")
            WHERE c.owner = ? " . $collectionwhere . $collectionfilter . ")