Skip to content

Commit

Permalink
Remove deprecated param from buildSortingSQL
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandra Nantel committed Aug 25, 2017
1 parent fe24dda commit 3047c6f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion fields/field.selectbox_link.php
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ private function getRelatedFieldsId() {
return explode(',', $related_field_id);
}

public function buildSortingSQL(&$joins, &$where, &$sort, $order='ASC', &$select = NULL){
public function buildSortingSQL(&$joins, &$where, &$sort, $order='ASC'){
if(in_array(strtolower($order), array('random', 'rand'))) {
$sort = 'ORDER BY RAND()';
}
Expand Down Expand Up @@ -1022,6 +1022,11 @@ public function buildSortingSelectSQL($sort, $order = 'ASC')
return null;
}

public function buildSortingSelectSQL($sort, $order = 'ASC')
{
return null;
}

/*-------------------------------------------------------------------------
Grouping:
-------------------------------------------------------------------------*/
Expand Down

0 comments on commit 3047c6f

Please sign in to comment.