From db5a2bacd1c9471158ad42744ee32713cfd53754 Mon Sep 17 00:00:00 2001 From: jfefe <jfefe@aternatik.fr> Date: Tue, 5 May 2015 03:56:09 +0200 Subject: [PATCH] Bad sort field --- htdocs/societe/class/api_thirdparty.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/societe/class/api_thirdparty.class.php b/htdocs/societe/class/api_thirdparty.class.php index a7bb324edc3..789b9e0b85a 100644 --- a/htdocs/societe/class/api_thirdparty.class.php +++ b/htdocs/societe/class/api_thirdparty.class.php @@ -107,7 +107,7 @@ class ThirdpartyApi extends DolibarrApi { * * @return array Array of thirdparty objects */ - function getList($mode, $sortfield = "c.rowid", $sortorder = 'ASC', $limit = 0, $page = 0) { + function getList($mode=0, $sortfield = "s.rowid", $sortorder = 'ASC', $limit = 0, $page = 0) { global $db, $conf; $obj_ret = array(); -- GitLab