Commit cad7df28 authored by merlinofchaos's avatar merlinofchaos

#107974: Ensure file_revisions table is added to query when using 'node has files' filter.

parent e2ef9c10
......@@ -110,3 +110,4 @@ Views --dev
o 107723: Removed use of IDs on table fields -- this might require your CSS files to be adjusted!
o 107713: Popular recent and popular alltime are now disabled by default.
o 106460: Update of module weight was not run on install of 1.4, causing taxonomy/term view to not override Drupal default.
o 107974: Ensure file_revisions table is added to query when using 'node has files' filter.
\ No newline at end of file
......@@ -157,6 +157,7 @@ function views_handler_file_filename_download($fieldinfo, $fielddata, $value, $d
function views_handler_file_filter_fid_exist($op, $filter, $filterdata, &$query) {
switch ($op) {
case 'handler':
$query->ensure_table('file_revisions');
if ($filter['value']) {
$query->add_where('file_revisions.fid');
}
......
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