Skip to content

Commit

Permalink
Fix for auto-complete join, wasn't apply autocomplete_where.
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesegrits committed Sep 28, 2012
1 parent d03126a commit aafddb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/fabrik_element/databasejoin/databasejoin.php
Expand Up @@ -659,7 +659,8 @@ function _buildQueryWhere($data = array(), $incWhere = true, $thisTableAlias = n
$mode = JArrayHelper::getValue($opts, 'mode', 'form');
$filterType = $element->filter_type;
if (($mode == 'filter' && $filterType == 'auto-complete')
|| $mode == 'form' && $params->get('database_join_display_type') == 'auto-complete')
|| ($mode == 'form' && $params->get('database_join_display_type') == 'auto-complete')
|| ($mode == 'filter' && $params->get('database_join_display_type') == 'auto-complete'))
{

$where .= JString::stristr($where, 'WHERE') ? ' AND ' . $this->_autocomplete_where : ' WHERE ' . $this->_autocomplete_where;
Expand Down

0 comments on commit aafddb2

Please sign in to comment.