summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--views.module8
-rw-r--r--views_query.inc1
2 files changed, 1 insertions, 8 deletions
diff --git a/views.module b/views.module
index 6899831..58b7a4a 100644
--- a/views.module
+++ b/views.module
@@ -1806,10 +1806,6 @@ function views_handler_filter_like($op, $filter, $filterinfo, &$query) {
case 'handler':
$table = $filterinfo['table'];
$column = $filterinfo['field'];
- if (empty($column)) {
- $fieldbits = explode('.', $filter['field']);
- $column = $fieldbits[1];
- }
$field = "$table.$column";
$query->ensure_table($table);
@@ -1854,10 +1850,6 @@ function views_handler_filter_timestamp($op, $filter, $filterinfo, &$query) {
$table = $filterinfo['table'];
$column = $filterinfo['field'];
- if (empty($column)) {
- $fieldbits = explode('.', $filter['field']);
- $column = $fieldbits[1];
- }
$field = "$table.$column";
if ($filterinfo['from_unixtime']) {
$field = "from_UNIXTIME($field)";
diff --git a/views_query.inc b/views_query.inc
index a6024e1..9ab9c21 100644
--- a/views_query.inc
+++ b/views_query.inc
@@ -85,6 +85,7 @@ function _views_view_build_filters(&$query, &$view) {
$fieldbits = explode('.', $filter['field']);
$field = $fieldbits[1];
}
+ $filterinfo['field'] = $field;
$view->used_filters = array();