From f863831489cc4a3b5b3c74e16454ff48f3afd52d Mon Sep 17 00:00:00 2001 From: evarisk-micka Date: Wed, 7 Jun 2023 15:43:31 +0200 Subject: [PATCH] #3148 [RiskAssessment] fix: order by cotation instead of creation date --- .../riskassessment/digiriskdolibarr_riskassessment_view.tpl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/tpl/riskanalysis/riskassessment/digiriskdolibarr_riskassessment_view.tpl.php b/core/tpl/riskanalysis/riskassessment/digiriskdolibarr_riskassessment_view.tpl.php index a7b985690..266a5bfa0 100644 --- a/core/tpl/riskanalysis/riskassessment/digiriskdolibarr_riskassessment_view.tpl.php +++ b/core/tpl/riskanalysis/riskassessment/digiriskdolibarr_riskassessment_view.tpl.php @@ -5,7 +5,7 @@ }); if (is_array($allRiskAssessment) && !empty($allRiskAssessment)) : usort($allRiskAssessment, function ($riskAssessmentComparer, $riskAssessmentCompared) { - return $riskAssessmentComparer->date_creation < $riskAssessmentCompared->date_creation; + return $riskAssessmentComparer->cotation < $riskAssessmentCompared->cotation; }); ?>
trans('ListingHeaderCotation'); ?> ()