Skip to content
Snippets Groups Projects
Commit a0613187 authored by catch's avatar catch
Browse files

Issue #3094277 by TylerMarshall, ravi.shankar: Spelling mistake in...

Issue #3094277 by TylerMarshall, ravi.shankar: Spelling mistake in views.api.php hook_views_query_alter
parent 35730336
No related branches found
No related tags found
No related merge requests found
...@@ -879,7 +879,7 @@ function hook_views_query_alter(ViewExecutable $view, QueryPluginBase $query) { ...@@ -879,7 +879,7 @@ function hook_views_query_alter(ViewExecutable $view, QueryPluginBase $query) {
// Traverse through the 'where' part of the query. // Traverse through the 'where' part of the query.
foreach ($query->where as &$condition_group) { foreach ($query->where as &$condition_group) {
foreach ($condition_group['conditions'] as &$condition) { foreach ($condition_group['conditions'] as &$condition) {
// If this is the part of the query filtering on title, chang the // If this is the part of the query filtering on title, change the
// condition to filter on node ID. // condition to filter on node ID.
if ($condition['field'] == 'node.title') { if ($condition['field'] == 'node.title') {
$condition = [ $condition = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment