-
Notifications
You must be signed in to change notification settings - Fork 1
/
views.patch
41 lines (34 loc) · 1.92 KB
/
views.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From 85beac206c4d7c435e7dc794da5e8050d03d8a08 Mon Sep 17 00:00:00 2001
From: Pavel Sokolov <[email protected]>
Date: Tue, 16 May 2017 11:10:08 +0200
Subject: [PATCH] Fixing removal of duplicate entires and link title
---
handlers/views_handler_field.inc | 2 +-
modules/taxonomy/views_handler_argument_term_node_tid_depth.inc | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/handlers/views_handler_field.inc b/handlers/views_handler_field.inc
index 65210d9f..60fea684 100644
--- a/handlers/views_handler_field.inc
+++ b/handlers/views_handler_field.inc
@@ -1176,7 +1176,7 @@ If you would like to have the characters \'[\' and \']\' please use the html ent
$more_link_path = drupal_substr($more_link_path, drupal_strlen($base_path));
}
- $more_link = l($more_link_text, $more_link_path, array('attributes' => array('class' => array('views-more-link'))));
+ $more_link = l($more_link_text, $more_link_path, array('attributes' => array('class' => array('views-more-link'), 'title' => $more_link_text)));
$suffix .= " " . $more_link;
}
diff --git a/modules/taxonomy/views_handler_argument_term_node_tid_depth.inc b/modules/taxonomy/views_handler_argument_term_node_tid_depth.inc
index 116a4ded..0cf8ee13 100644
--- a/modules/taxonomy/views_handler_argument_term_node_tid_depth.inc
+++ b/modules/taxonomy/views_handler_argument_term_node_tid_depth.inc
@@ -132,6 +132,10 @@ class views_handler_argument_term_node_tid_depth extends views_handler_argument
$subquery->condition($where);
$this->query->add_where(0, "$this->table_alias.$this->real_field", $subquery, 'IN');
+
+ // Fixing removal of duplicated entries due to multi categorisation. Pavel Sokolov.
+ $this->query->add_field('taxonomy_index', 'tid');
+ $this->query->add_where(0, 'taxonomy_index.tid', $tids, $operator);
}
function title() {
--
2.11.0 (Apple Git-81)