Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
search_api
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
search_api
Commits
d61a2be0
Commit
d61a2be0
authored
9 months ago
by
IMMACULATE X
Committed by
Thomas Seidl
9 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3449298
by immaculatexavier, drunken monkey: Fixed minor issue with sorting of search views.
parent
a866fd9b
No related branches found
No related tags found
1 merge request
!141
Update 2 files
Pipeline
#181911
passed
9 months ago
Stage: build
Stage: validate
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.txt
+2
-0
2 additions, 0 deletions
CHANGELOG.txt
src/Plugin/views/query/SearchApiQuery.php
+1
-1
1 addition, 1 deletion
src/Plugin/views/query/SearchApiQuery.php
src/Plugin/views/sort/SearchApiSort.php
+0
-2
0 additions, 2 deletions
src/Plugin/views/sort/SearchApiSort.php
with
3 additions
and
3 deletions
CHANGELOG.txt
+
2
−
0
View file @
d61a2be0
Search API 1.x, dev (xxxx-xx-xx):
---------------------------------
- #3449298 by immaculatexavier, drunken monkey: Fixed minor issue with sorting
of search views.
- #3447797 by NexusNovaz, drunken monkey: Fixed documentation of
ContentEntity::getPartialItemIds().
- #3437275 by dineshkumarbollu, drunken monkey, jonathan1055: Removed uses of
...
...
This diff is collapsed.
Click to expand it.
src/Plugin/views/query/SearchApiQuery.php
+
1
−
1
View file @
d61a2be0
...
...
@@ -103,7 +103,7 @@ class SearchApiQuery extends QueryPluginBase {
*
* @var array
*/
public
$orderby
=
[]
;
public
$orderby
=
NULL
;
/**
* The conjunction with which multiple filter groups are combined.
...
...
This diff is collapsed.
Click to expand it.
src/Plugin/views/sort/SearchApiSort.php
+
0
−
2
View file @
d61a2be0
...
...
@@ -25,8 +25,6 @@ class SearchApiSort extends SortPluginBase {
// When there are exposed sorts, the "exposed form" plugin will set
// $query->orderby to an empty array. Therefore, if that property is set,
// we here remove all previous sorts.
// @todo Is this still true in D8?
// @todo Check whether #2145547 is still a problem here.
if
(
isset
(
$this
->
query
->
orderby
))
{
unset
(
$this
->
query
->
orderby
);
$sort
=
&
$this
->
query
->
getSort
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment