Skip to content

Commit

Permalink
removed SQL query from fields/branches.php
Browse files Browse the repository at this point in the history
  • Loading branch information
pe7er committed Nov 4, 2015
1 parent 069aa85 commit b14cbd4
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions administrator/components/com_finder/models/fields/branches.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,6 @@ class JFormFieldBranches extends JFormFieldList
*/
public function getOptions()
{
// Build the query.
$db = JFactory::getDbo();
$query = $db->getQuery(true)
->select('id AS value, title AS text')
->from($db->quoteName('#__finder_taxonomy'))
->where('parent_id = 1')
->order('title ASC');
$db->setQuery($query);
$options = $db->loadObjectList();

array_unshift($options, JHtml::_('select.option', '', JText::_('COM_FINDER_MAPS_SELECT_BRANCHE'), 'value', 'text'));

return $options;
return JHtml::_('finder.mapslist');
}
}

0 comments on commit b14cbd4

Please sign in to comment.