Skip to content

Commit

Permalink
Fix PHP 7.x issue with SuiteCRM 7.9 and higher
Browse files Browse the repository at this point in the history
  • Loading branch information
QuickCRM authored Jun 27, 2018
1 parent cb82cb8 commit 161db55
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions service/quickcrm/SugarWebServiceUtilquickcrm.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,17 @@ function Qget_return_value_for_fields($value, $module, $fields) {
*
* NS-TEAM : - fix bug with order by
*/
function get_data_list($seed, $order_by = "", $where = "", $row_offset = 0, $limit=-1, $max=-1, $show_deleted = 0, $favorites = false)
{
function get_data_list(
$seed,
$order_by = "",
$where = "",
$row_offset = 0,
$limit = -1,
$max = -1,
$show_deleted = 0,
$favorites = false,
$single_select = false
) {
global $sugar_version;
$GLOBALS['log']->debug("get_list: order_by = '$order_by' and where = '$where' and limit = '$limit'");
if(isset($_SESSION['show_deleted']))
Expand All @@ -187,4 +196,4 @@ function get_data_list($seed, $order_by = "", $where = "", $row_offset = 0, $lim
$query = $seed->create_new_list_query($order_by, $where,array(),$params, $show_deleted);
return $seed->process_list_query($query, $row_offset, $limit, $max, $where);
}
}
}

0 comments on commit 161db55

Please sign in to comment.