Skip to content

Commit

Permalink
Fix matching filters links in search results
Browse files Browse the repository at this point in the history
  • Loading branch information
phansys committed Apr 19, 2021
1 parent cc514b7 commit 01677b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Resources/public/css/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -355,13 +355,13 @@ body.fixed .content-header .navbar.stuck {
word-wrap: break-word;
}

.sonata-search-result-list .box .nav-stacked > li.item > span.matches {
.sonata-search-result-list.nav-stacked > li.item > span.matches {
position: relative;
display: block;
padding: 10px 15px;
}

.sonata-search-result-list .box .nav-stacked > li.item > span.matches > a.label {
.sonata-search-result-list.nav-stacked > li.item > span.matches > a.label {
margin: 0 1px;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Resources/views/Block/block_search_result.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ file that was distributed with this source code.
{% if match and ((filter.option('case_sensitive') is not same as(false) and term in match)
or filter.option('case_sensitive') is same as(false) and term|lower in match|lower)
%}
<a class="label label-primary" href="{{ admin.generateUrl('list', {'filter': {(filter.formName): term}}) }}">
<a class="label label-primary" href="{{ admin.generateUrl('list', {'filter': {(filter.formName): {'value': term}}}) }}">
{{ filter.option('label')|trans({}, filter.option('translation_domain', admin.translationDomain)) }}
</a>
{% endif %}
Expand Down

0 comments on commit 01677b2

Please sign in to comment.