Commit 88bde8e4 authored by merlinofchaos's avatar merlinofchaos
Browse files

Cleanup patch by yched

parent 4c52e782
......@@ -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)";
......
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment