Add SELECT DISTINCT to show_actions_done() SQL request

This commit is contained in:
François J 2018-11-12 12:34:25 +01:00
parent 9a6a3d8df4
commit 10dd5652ee

View File

@ -1315,7 +1315,8 @@ function show_actions_done($conf, $langs, $db, $filterobj, $objcon='', $noprint=
if (! empty($conf->agenda->enabled))
{
// Recherche histo sur actioncomm
$sql = "SELECT a.id, a.label,";
// @since PR #9972, add DISTINCT.
$sql = "SELECT DISTINCT a.id, a.label,";
$sql.= " a.datep as dp,";
$sql.= " a.datep2 as dp2,";
$sql.= " a.note, a.percent,";