From 5ba4a57b613cd11869661c74e4954329de4e3642 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 25 Nov 2017 16:05:45 +0100 Subject: [PATCH] Fix sort on last actions --- htdocs/core/class/html.formactions.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/html.formactions.class.php b/htdocs/core/class/html.formactions.class.php index 7a0dc9b6cb624..1f259bbee7a51 100644 --- a/htdocs/core/class/html.formactions.class.php +++ b/htdocs/core/class/html.formactions.class.php @@ -167,7 +167,7 @@ function showactions($object, $typeelement, $socid=0, $forceshowtitle=0, $morecs require_once DOL_DOCUMENT_ROOT.'/comm/action/class/actioncomm.class.php'; - $sortfield='a.datep'; + $sortfield='a.datep,a.id'; $sortorder='DESC'; $listofactions=ActionComm::getActions($this->db, $socid, $object->id, $typeelement, '', $sortfield, $sortorder, ($max?($max+1):0));