You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: meta/SearchSQLBuilder.php
+29-2Lines changed: 29 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,9 @@ class SearchSQLBuilder
12
12
/** @var QueryBuilder */
13
13
protected$qb;
14
14
15
+
/** @var bool Include latest = 1 in select query */
16
+
protected$selectLatest = true;
17
+
15
18
/**
16
19
* SearchSQLBuilder constructor.
17
20
*/
@@ -65,8 +68,7 @@ public function addSchemas($schemas)
65
68
66
69
$first_table = $datatable;
67
70
}
68
-
// phpcs:ignore
69
-
$this->qb->filters()->whereAnd("( (IS_PUBLISHER($datatable.pid) AND $datatable.latest = 1) OR (IS_PUBLISHER($datatable.pid) !=1 AND $datatable.published = 1) )");
0 commit comments